Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

i have 100 lines of script which is common in 10 tabs here i want to optimize it ? how ?

i have 100 lines of script which is common in 10 tabs  here i want to optimize it ? how ?

4 Replies
alexandros17
Partner - Champion III
Partner - Champion III

Use "SUB" and "CALL" instructions

Not applicable
Author

Can u elabarate

alexandros17
Partner - Champion III
Partner - Champion III

Sub - End sub is the definition for a subroutine that is a piece of code reusable:

sub INCR (I,J)

     I = I + 1

     exit sub when I < 10

     J = J + 1

end sub

Call with the name of subroutine recall the piece of code

call INCR (X,Y)

Not applicable
Author

If it's also usable in other apps you could write it on a text file (.txt or .qvs for example) and include it on all the necesary apps.