abcd
abcd

Reputation:

VC++ MFC edit box sorting

How do I sort the date and time in decending order in edit box?

Upvotes: 0

Views: 735

Answers (1)

Francis
Francis

Reputation: 12018

an edit box contains only one single text (either multiple-lines or single line).

if you want a list of date/time string, use CListBox and it has sort member function. Otherwise you'll need to retrieve the complete string from edit box, load it into an array of lines then sort, and put back the sorted result.

Upvotes: 1

Related Questions