Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Using Currency to add sum of 2 numbers
#10
This is what i would do.
Code:
Copy      Help
str a.getwintext(id(2 "EditBox"))
str b.getwintext(id(4 "CallCenter"))
a.findreplace("," "")
b.findreplace("," "")
a.trim('$')
b.trim('$')
CURRENCY c1 c2
c1=val(a 2)
c2=val(b 2)
c1.add(c2)
str c= c1
strrev c
a.replacerx("(\d{3})(?=\d+($|[^\.\w]))" "$1,")
strrev c
out c


Messages In This Thread

Forum Jump:


Users browsing this thread: 3 Guest(s)