I am becoming familiar withe the control Id . I have created a simple list box display the current directory. I select from the list and I am displaying what
I select using a simple message box. The message box displays what I select. Every thing seems to be going fine. I chose to select another Item and the
Message box displays my previous selecttion. I set my strings and varaiables to zero and the sting to nothing, but the message box displays the old selection.
Any Body know what I am doing wrong. The Code is below.
CASE LISTBOX_1
FILENUMBER=0
FolderSelected=""
FILENUMBER=GETSELECTED MAIN_WINDOW,LISTBOX_1
FolderSelected=GETSTRING (MAIN_WINDOW,LISTBOX_1,FILENUMBER)
If (FILENUMBER >-1)
'------------WINDOW NAME,message to appear, addtional texxt, type of box
MESSAGEBOX MAIN_WINDOW,FolderSelected,"Error",@MB_OK
' This works the first time around
End if
'----------------Below is the cancel button which works just fine-------------------
CASE CancelBUTTON_5
Any body see my error?
Thanks
Texas Pete
Try after Messagebox command set to zero.
IF (FILENUMBER >-1)
'------------WINDOW NAME,message to appear, addtional texxt, type of box
MESSAGEBOX MAIN_WINDOW,FolderSelected,"Error",@MB_OK
FILENUMBER=0
FolderSelected=""
' This works the first time around
ENDIF
read the user guide section "Using listbox controls"
You have to test for the notification code. Specifically @LBNSELCHANGE