March 2018
Beginner to intermediate
514 pages
13h 11m
English
This control statement is used for subroutines. Subroutines are code blocks that are only executed when the subroutine is called. Subroutines can be used more than once within the same script and among other applications!.
Subroutines are very useful and widely used in most scripts as they can also be parameterized, which can render them powerful functions. This is key when creating reusable code. Create different functions, save them separately in QVS or TXT files, and then include them in your script whenever needed. You can also re-use the code in any application.
The following is an example of a subroutine that sets a couple of variables:
Sub SetVariablesSET vBookName = 'Mastering Qlik Sense';LET vCurrentYear = Year(Today()); ...
Read now
Unlock full access