Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
if variable = """""
#1
i am having issues after getting wintext from a dialog
Code:
Copy      Help
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
Code:
Copy      Help
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..
#2
if a ="run 1 time"
will compare string. Do you need {if a contains "1"}?
#3
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
#4
What is run 1 time ?
If it is string, enclose in double quotes.
#5
well it was just a text in the dialog i just made it like this with two different static text

Code:
Copy      Help
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


Forum Jump:


Users browsing this thread: 1 Guest(s)