What is the equivalent to X = X+1 - Forum

Forum Navigation
You need to log in to create posts and topics.

What is the equivalent to X = X+1

I really feel bad having to ask this but don't have choice.

If I press the same button a few times and the variable use counts or accumulates the number of times I press, how do we do this with VisualNeo Web.

I spent three hours searching for this simple operation which should be X = X + 1 and I found nothing in any example in the VNW document that explains this.  I have experiment so many way and it didn't work.  I imagine it is to simple to find it.  VNW must have his own way to do it, this is what I think.

Is there a document that explains the NeoScript language?

There are great examples of Java applications on the NET, but how can I integrate them into VNW? The latest examples that Luis take out on the Youtube Channel are very good.  Thanks, but I think I still need more of them.

In any case, if someone can give me an example how to do this simple equation by pressing a button. X = X + 1

After a while, I will surely have everything I need to move forward at ease.

Thank you...

@rocote, there are two ways:

ToNumber "[x]" [x]
SetVar [x] [x]+1

or

Math "[x]+1" -1 [x]

ToNumber is only necessary if your [x] is a string and not a number. You have very probably faced that problem.
Don't worry about asking simple questions.

Online help here:
https://webhelp.visualneo.com

Vadim and Samuel Vanneste have reacted to this post.
VadimSamuel Vanneste

THANK YOU SO MUCH LUIS!!

You know how important is to used these variable!

And I'm sure you know why I did ask for this, right?

Take care!

Roger :)