Access Robotask variables from a script

Discuss RoboTask here
Post Reply
Genesis
Posts: 12
Joined: Wed May 05, 2004 9:03 am

Access Robotask variables from a script

Post by Genesis »

Is it possible to access a Robotask Variable from a Basic script? I only find the option to set or add Robotask variables.
Oleg
Site Admin
Posts: 3011
Joined: Thu Jan 01, 1970 1:00 am
Contact:

Access Robotask variables from a script

Post by Oleg »

You may use "ExpandText" method.
For example:

MsgBox RoboTaskApp.ExpandText("Today {datetime}")
MsgBox RoboTaskApp.ExpandText("{year}-{monthno}-{day}")
MsgBox RoboTaskApp.ExpandText("{MyUserVariable}")
Genesis
Posts: 12
Joined: Wed May 05, 2004 9:03 am

Access Robotask variables from a script

Post by Genesis »

Thanx!
Post Reply