Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
I want to skip some lines in a macro. Therefore I want to use the goto command.
Qlikview doesn't accept the code the line "goto Step2".
How is the syntax for goto?
my macro code
Sub BABPrint()
' Definition zu druckende Herbergen
Set JHs = ActiveDocument.Fields("HausID").GetPossibleValues
Set JHsBezeichnung = ActiveDocument.Fields("HausShortName").GetPossibleValues
goto Step2
For i = 0 to JHs.count -1
ActiveDocument.Fields("HausID").Select JHs.item(i).Text
ActiveDocument.Fields("HausShortName").Select JHsBezeichnung.item(i).Text
BAB_StartBericht()
ActiveDocument.Fields("HausShortName").Select ""
Next
Step2:
ActiveDocument.Fields("HausID").Select "32*" | ||
BAB_StartBerichtSpezial("320#321") |
end sub
I believe 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:
1 | On Error GoTo 0 |
To control the execution flow, you'll need to use If..Then..Else, Select..Case and other flow control statements.
edit: Or comment that part of your script code you want to skip
I believe 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:
1 | On Error GoTo 0 |
To control the execution flow, you'll need to use If..Then..Else, Select..Case and other flow control statements.
edit: Or comment that part of your script code you want to skip
thanks for the answer
I have put comment in this part