08-25-2009, 03:18 PM
Add 1 to variable and store as another variable
|
08-25-2009, 03:26 PM
you are using the wrong data type / operater combination.
you cannot simply add a string with an integer, so you must use the val function to return an integer, which in turn can be added to an integer. if you want to use strings str rtime = 1 str rtime2 = (val(rtime)+ 1) if you just want to keep track of #'s int rtime = 1 int rtime2 = rtime + 1
08-25-2009, 03:32 PM
Perfect!
Thanks, I completely forgot I was setting them as strings. Thanks, Paul. |
« Next Oldest | Next Newest »
|
Users browsing this thread: 1 Guest(s)