Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to externalize repeating script pieces

Hi,

I wonder if it is possible in qv to write repating pieces of a script only once and use them when neccessary by calling those pieces.

Like the 'call' command in VBA or 'go sub' in basic.

Thanks

1 Reply
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

You can use Sub routines:

Sub MySub(Param1)

// do stuff

End Sub

Call MySub(Hello);

You can also put script code in text files and use include statements to include the code from a script file:

$(include=C:\MyScripts\Connections.qvs);


talk is cheap, supply exceeds demand