Posts: 35
Threads: 13
Joined: Feb 2011
i am having issues after getting wintext from a dialog
str a.getwintext(id(3 "Dialog"))
rep
,if a=run 1 time
,,goto b
,,ret
,else , break
it wont let me use if a=run 1 time now if i had the id(3 in dialog be 100 it would work
say it was
rep
,if a=100
,,goto b
,,ret
,else, break
that would work i just cant seem to get it to work on if a=run 1 time that error says
Error in function: missing ( after function name, or ; after statement.
maybe i have to use if a ="run 1 time" any help let me know thanks..
Posts: 12,073
Threads: 140
Joined: Dec 2002
if a ="run 1 time"
will compare string. Do you need {if a contains "1"}?
Posts: 35
Threads: 13
Joined: Feb 2011
no i dont need that , what im trying for is to get wintext from id(3 "Dialog"))
and
if a= run 1 time
goto next
ret
else , break
its does work if i have it set
100 on dialog
and
if a=100
goto next
ret
else, break
that code does work thats all im trying to do is make it work with run 1 time
Posts: 12,073
Threads: 140
Joined: Dec 2002
What is run 1 time ?
If it is string, enclose in double quotes.
Posts: 35
Threads: 13
Joined: Feb 2011
well it was just a text in the dialog i just made it like this with two different static text
if s=0;_s="run 1 time";_s.setwintext(id(3 hDlg))
if s=0;_s="100";_s.setwintext(id(4 hDlg))
str a.getwintext(id(4 "Dialog2"))
rep
,if a=100
,,goto b
,,ret
,else , break
made it allot easier since i couldn't figure out how to make it work if static text says run 1 time so i just made 2 different static text for it