01-20-2006, 06:31 PM
Assign "1" to the variable. Example:
\Dialog_Editor
str controls = "3 4 5 6"
str c3Che o4Opt o5Opt o6Opt
c3Che=1
o4Opt=1
if(!ShowDialog("" 0 &controls)) ret
if(c3Che=1) out "checkbox checked"
if(o4Opt=1) out "option 1 checked"
else if(o5Opt=1) out "option 2 checked"
else if(o6Opt=1) out "option 3 checked"
;BEGIN DIALOG
;0 "" 0x10C80A44 0x100 0 0 223 135 "Form"
;1 Button 0x54030001 0x4 120 116 48 14 "OK"
;2 Button 0x54030000 0x4 170 116 48 14 "Cancel"
;3 Button 0x54012003 0x0 8 8 48 12 "Check"
;4 Button 0x54032009 0x0 8 40 48 12 "Option 1"
;5 Button 0x54002009 0x0 8 52 48 13 "Option 2"
;6 Button 0x54002009 0x0 8 64 48 12 "Option 3"
;END DIALOG
;DIALOG EDITOR: "" 0x2010800 "" ""