Assign variable VALUE to another variable

Discuss RoboTask here
Post Reply
KeesB
Posts: 9
Joined: Sat Aug 08, 2009 7:13 pm
Location: Netherlands
Contact:

Assign variable VALUE to another variable

Post by KeesB »

How can I assign the VALUE of a variable to another variable?
I want to assign Records(0) To LastNumber. The value for Records(0) is say 1357, but now it stores {Records(0)} in Lastnumber. Which works IF I keep Recordss, but I'd rather delete Records as it is a complex variable (and I only need that number).
Hope someone has a bright idea....
Oleg
Site Admin
Posts: 3201
Joined: Thu Jan 01, 1970 1:00 am
Contact:

Assign variable VALUE to another variable

Post by Oleg »

Use "Set variable" action
put LastNumber into "Variable name" field
put {Records(0)} into "Variable value" field
And check "Expand variable value" checkbox.
In this case the action expands the expression first and next assign the result to variable.
KeesB
Posts: 9
Joined: Sat Aug 08, 2009 7:13 pm
Location: Netherlands
Contact:

Assign variable VALUE to another variable

Post by KeesB »

Thanks!! I missed the checkbox.
Once again, great support on a great product!
Kees
Post Reply