|
undergod Wanderer
Joined: 27 Jun 2001 Posts: 82
|
Posted: Wed Oct 16, 2002 6:12 am
Commas in triggers with %d? |
I am using a trigger that captures a number and puts it into a variable. It does some other stuff, but that's not important. The important thing is, this number contains commas. Now, if I get a number like 2,143, the variable only reads '2'.
Is there an easy way to get around this? |
|
|
|
Troubadour GURU
Joined: 14 Oct 2000 Posts: 556 Location: USA
|
Posted: Wed Oct 16, 2002 6:43 am |
Use %n instead of %d. Not only will it read numbers with commas, it'll read negative numbers as well.
Troubadour
(Win 98, Pentium III, 550 MHz) |
|
|
|
undergod Wanderer
Joined: 27 Jun 2001 Posts: 82
|
Posted: Wed Oct 16, 2002 6:45 am |
Wow, that was easy. Thanks, works like a charm.
|
|
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|