Board index » cppbuilder » TListView's SortType

TListView's SortType


2003-11-06 08:30:45 AM
cppbuilder40
How can I change the SortType property of ListView "at runtime"?
ListView1->SortType=stData;
gives error about stData variable.
ListView1->SortType=2;
works but gives a warning about assigning integer to a TSortType variable.
Thanks...
Huseyin Candan
 
 

Re:TListView's SortType

"Huseyin Candan" < XXXX@XXXXX.COM >wrote:
Quote
[...] ListView1->SortType=stData;
gives error about stData variable.
In v6 TSortType is found in ComCtrls. Be sure that it's
included.
Quote
ListView1->SortType=2;
works but gives a warning about assigning integer to a
TSortType variable.
That warning you can ignore because TSortType is a simple enum.
~ JD
 

Re:TListView's SortType

"Huseyin Candan" < XXXX@XXXXX.COM >wrote in message
Quote
ListView1->SortType=stData;
gives error about stData variable.
Prefix the value with the appropriate namespace qualifier:
ListView1->SortType = Comctrls::stData;
Gambit
 

{smallsort}