RoboTask User's Guide
Keyword Index
Home page



IconQuick Start Guide
IconSeveral practical recommendations
IconMenus
IconActions
IconTriggering Events
IconAppendix
IconOther software

© 2004-2016 Neowise.com

VB Script

Top  Previous  Next

This action allows to perform a program, which is written in VB Script. Notice that the languages Visial Basic and VB Script are not the same, although they are very alike. The documentation for the language can be read on the Microsoft site: http://msdn.microsoft.com/en-us/library/t0aew7h6(v=vs.84).aspx

The action editor is a specialize text editor adapted for editing a program code.

 

VBScript

 

 

Popup proposals.

When pressing the Ctrl-Space, a popup menu with some functions and objects of VB Script shows up on the screen. One can choose a necessary point from the list and then the editor will insert a proper line/string into a text.

If you began to enter a function name and pressed the Ctrl-Space, only alternatives corresponding to the input line will be left in the popup menu.

 

Autocomplete.

This function allows to insert standard language constructions into a text automatically. For this you need to enter 2-5 key constructions (identifier of construction) and press the combination Ctrl-J. The editor inserts the whole construction instead of the key word.

The editor supports the next statements:

Identifier

Description

Insert statement

do

"do" loop

do

loop |

foreach

"For each" loop

for each | in

 

next

for

Simple "for" loop

for i=0 to | step 1

 

next

func

Function declaration template

function |()

 

end Function

if

Simple "IF"

if | then

 

end if

ife

IF .. Else stetement

if | then

 

else

 

end if

select

Select case statement

select case |

 case

 case

 case

end select

sub

Sub procedure declaration

sub |()

 

end sub

while

"While" loop

while |

 

wend

with

"With" statement

with |

 

end with

 

Interface

 

Load from file

Load the text of a script from a file.

 

Save script as file

Save the text of a script into a file.

 

Additional options

Expand Variables in the script - If to switch on this mode, the RoboTask expands all inserts of variables in a text before running of the script.

Save Final script into variable – If it is necessary to monitor the final text of the script, switch on this checkbox and enter the variable name. This mode is need only for control and checkout. The fact of the matter is that the substitution of variable values can break down the syntax of a script text. By means of this mode it is possible to get the final script and analyze it if it is necessary.

 

The field of a log is under the editor. The messages about runtime errors of the script are output into this field. Also the text of messages LogMessage is output here.

 

Run script

Running of a script from the editor to test. If a runtime error arises, you can see a message about the error in the field of the edit log.

 

Help

Activation of a help system.

 

 

note Related Topics

JS script

JS Evaluate

VB Evaluate

RoboTaskApp object