Is there anything wrong with the way I have created the columns at runtime?
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.
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.
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
NEXTMany thanks
Ollie.
Using:
xHarbour Compiler build 1.2.1 (SimpLex) (Rev. 6406)
Borland C++ 5.5.1
FWH 9.04 (2009 Apr)
Ollie.
Using:
xHarbour Compiler build 1.2.1 (SimpLex) (Rev. 6406)
Borland C++ 5.5.1
FWH 9.04 (2009 Apr)