Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
DIALOG HELP
#1
ok i have a dialog with a Edit Box and a Static Text with nothing in it what i am doing is getting wintext from the Edit Box and Static Text and having a function add numbers to the Static text

str a.getwintext(id(44 "Dialog"))
str b.getwintext(id(45 "Dialog"))
;;44=Edit Box
;;45=Static Text
what i want it to do after it gets wintext from both id's is to subrack (45 "Dialog")) from (44 "Dialog")) so if i have 100 in the Edit Box and 25 in the Static Text then i want it to subtract 25 from 100 and if = 25 goto next else goto , top
i dont think you use CURRENCY because i am using that to add to the Static Text for example this is the code im using

str b4.getwintext(id(45 "Dialog"))
CURRENCY b2=b4
CURRENCY b3="5"
b2.add(b3)
str b1=b2
b1.setwintext(id(45 "Dialog"))
wait 0.3
str p9.getwintext(id(45 "Dialog"))
str p10.getwintext(id(44 "Dialog"))
if p9=p10
out STOP1
ret
else , break
thats the code i am using but i do need it to also subtrack Static Text From Edit Box and if it = 25 goto next else goto, top please help me thanks soooo much if you can help me out i would apreciate it Smile


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)