>
>I have two questions about the MS Listview control:
>1. The Alignment settings for right or center doesn't seems to work in
> the columnheaders.add()-method. Is there a trick?I just tested and it works for any column but the first. The first column accepts only Left aliigment otherwise it generates an error.
loHeader = THIS.ColumnHeaders.Add(,,,,1)
<
>2. How can I sort in a column with date items?
The same way you sort any other column. Here's the code you can put in the ListView ColumnClick Method
PROCEDURE ColumnClick
LPARAMETERS loColumnheader
IF THIS.Sorted
THIS.SortKey = loColumnHeader.Index - 1
ENDIF
ENDPROC
--sb--