When I try and run the following script, I get the error "Error C155 Line 4: Invalid integer constant".
proc main
integer iTemp = 50
; Define and display the dialog box.
dialogbox 0 0 0 100 iTemp 11 "Dialog Box"
enddialog
pause 5 ; Show off the dialog box.
dlgdestroy 0 CANCEL ; Destroy the dialog.
endproc
When I read the help file it says "Local variables may be used within the dialogbox statement or in any dialog box control statement. However, the dialog box will be automatically destroyed when the procedure that defines the local variables returns."
What am I doing wrong?
Thanks,
Bonk
proc main
integer iTemp = 50
; Define and display the dialog box.
dialogbox 0 0 0 100 iTemp 11 "Dialog Box"
enddialog
pause 5 ; Show off the dialog box.
dlgdestroy 0 CANCEL ; Destroy the dialog.
endproc
When I read the help file it says "Local variables may be used within the dialogbox statement or in any dialog box control statement. However, the dialog box will be automatically destroyed when the procedure that defines the local variables returns."
What am I doing wrong?
Thanks,
Bonk