Qlik Community

QlikView Scripting

Discussion Board for collaboration on QlikView Scripting.

Announcements
QlikView Fans! We’d love to hear from you.
Share your QlikView feedback with the product team… Click here to participate in our 5-minute survey.
Rules, plus terms and conditions, can be found here.
b_garside
Valued Contributor

Jump to a section in script

How do I jump to another section in the script if my subroutine determines it needs to do so.

Maybe that is bad form. more curious if this is done or is it strictly kept within the routine?

sub loadqvd
If Filesize('Billets.qvd') <= 0 then

what command is need to jump to another piece of code?

else

Do this....


let vLoadAttempt ='$(vLoadAttempt)'+1;

EndIF
End Sub

1 Solution

Accepted Solutions
Not applicable

Re: Jump to a section in script

You can use EXIT SUB to exit the sub routine  or CALL another SUB Routine.

sub loadqvd
If Filesize('Billets.qvd') <= 0 then

EXIT SUB // To exit the SUB Routine or USE CALL another SUB Routine

else

Do this....


let vLoadAttempt ='$(vLoadAttempt)'+1;

EndIF
End Sub

2 Replies
Not applicable

Re: Jump to a section in script

You can use EXIT SUB to exit the sub routine  or CALL another SUB Routine.

sub loadqvd
If Filesize('Billets.qvd') <= 0 then

EXIT SUB // To exit the SUB Routine or USE CALL another SUB Routine

else

Do this....


let vLoadAttempt ='$(vLoadAttempt)'+1;

EndIF
End Sub

b_garside
Valued Contributor

Re: Jump to a section in script

Perfect Thanks

Community Browser