And how do I remove these columns and replace them with others? I want to change the columns in the listbox when the user changes the database order for example.
- Code: Select all Expand view RUN
DEFINE COLUMN BROWSE oListBox ID 40 OF oDlg_Search UPDATE ON DblClick ( lResult := .T., oDlg_Search:End() )
oListBox:cALIAS = cALIAS
aFlds := {"COMPANY","SURNAME","FIRSTNAME","TEL1"}
aTitles := {"Company","Surname","FIRSTNAME","Telephone"}
aWidths := {90,100,90,100}
FOR i := 1 TO LEN( aFlds )
cTemp := aFlds[ i ]
ADD TO BROWSE oListBox DATA &cTemp HEADER aTitles[ i ] OEM ALIGN LEFT WIDTH aWidths[ i ] PIXELS
NEXT