Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Add 1 to variable and store as another variable
#2
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


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)