Forum Discussion

jyothi_priya's avatar
jyothi_priya
Contributor
13 years ago

Goto in VBScript

Hi, I want following kind of code in VBScript: Function ClickControl(Object,Label)     If Object.Exists Then         Object.Click()     Else         Goto Label     E...
  • HKosova's avatar
    13 years ago
    Hi,



    There is no GoTo label statement in VBScript. The GoTo keyword is used only as part of the On Error statement for disabling error handling, as follows:





    To control the test execution flow, you'll need to use If..Then..Else, Select..Case and other flow control statements.