I hope someone can help with suggestions for this one.
I'm creating a listbox with the symbols of all of the elements which works well, however
when trying to retrieve the selected string all I get is a null string
To debug this I'm using a Msgbox, normally it goes into a string array.
Dave Stanton
------------------
I'm creating a listbox with the symbols of all of the elements which works well, however
when trying to retrieve the selected string all I get is a null string
To debug this I'm using a Msgbox, normally it goes into a string array.
Dave Stanton
Code:
........................... CONTROL ADD LISTBOX ,ghDlg, %ID_Grid0, A(),150,10,60,50,%LBS_NOTIFY OR _ %WS_VSCROLL OR %WS_BORDER CALL AtomCallBack ............................ CALLBACK FUNCTION AtomCallBack() LOCAL B$ IF CBCTLMSG = %LBN_SELCHANGE THEN CONTROL GET TEXT ghDlg,%ID_Grid0 TO B$ MSGBOX B$,,"Element" END IF END FUNCTION
Comment