SRL Archive - OSR Help

Find Number WITH Comma


halgboy_tbc

2013-03-11 14:24:05

So in using GetTextAtExWrap I get a string (of a number) which I turn to an integer.

At another location I want to find that integer but with a comma (For example the int that I found is 25000; I want to find the integer (25000) at the 2nd location as 25,000, how can I do this?

For more information I am trying to do something like this:

A:= GetTextAtExWrap(w/e); //so, A:=25000

B:= ?? //(need to somehow transform 25000 (A) to 25,000; I am not sure if this will make B an int or a string, but doesn't matter)

if FindText(w/e, text:B, w/e) then


Thanks

Olly

2013-03-11 14:27:03

you want to change something like 25000 to 25,000? use the function groupDigits. :)

halgboy_tbc

2013-03-11 14:31:00

From: Ollybest
you want to change something like 25000 to 25,000? use the function groupDigits. :)

Love ya, thanks.

Sjoe

2013-03-11 14:39:36

Oh I use GetNumbers