gui message problems
"damien c. sadler" <[email protected]>
| Newsgroups | gmane.comp.windows.autoit.user |
|---|---|
| Message-ID | <[email protected]> |
hi guys,
could you look at this code and tell me what the problem is? i keep getting an error telling me that there's no wend statement when i know there is:
btw i'm using jamal mazrui's layout by code library to help with gui placement.
func prompt()
_LBCCreate("choose activity:")
$mm=_LBCCtrlCreateRadio("Music Machine")
$wnit=_LBCCtrlCreateRadio("What Note Is This?")
$simon=_LBCCtrlCreateRadio("Simon")
$fkey=_LBCCtrlCreateRadio("fire key")
$mbi=_LBCCtrlCreateRadio("musical bop it")
$mbox=_LBCCtrlCreateRadio("music box")
$ok=_LBCCtrlCreateButton("&ok")
$ccl=_LBCCtrlCreateButton("e&xit")
_LBCShow()
while 1
$msg=guigetmsg()
if $msg=$ccl or $msg=$gui_event_close then exit
if $msg=$ok then read_choice()
wend
endfunc
func read_choice()
if guictrlread($mm)=$gui_checked then music_machine()
if guictrlread($wnit)=$gui_checked then what_note_is_this()
if guictrlread($simon)=$gui_checked then simon()
if guictrlread($fkey)=$gui_checked then firekey()
if guictrlread($mbi)=$gui_checked then musical_bop()
if guictrlread($mbox)=$gui_checked then music_box()
endfunc
thanks.
regards,
damien
[Non-text portions of this message have been removed]