Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Include statement

Hi,

Can any one clear me about the Include statement with an example

1 Solution

Accepted Solutions
giakoum
Partner - Master II
Partner - Master II

Include statement just inserts code from a file into your reload script.

Very useful if you have the same piece of code used in many different applications. You maintain the files that is included only and do not have to amend every single qvw.

Also very handy when subs are used across different qvw.

Dollar-Sign Expansion of File - Include Statement

File inclusions are made using dollar-sign expansions. The syntax is then:

$( include=filename )

The above text will be replaced by the content of the file specified after the equal sign. This feature

is very useful when storing scripts or parts of scripts in text files.

Example:

$(include=C:\Documents\MyScript.qvs);

View solution in original post

3 Replies
giakoum
Partner - Master II
Partner - Master II

Include statement just inserts code from a file into your reload script.

Very useful if you have the same piece of code used in many different applications. You maintain the files that is included only and do not have to amend every single qvw.

Also very handy when subs are used across different qvw.

Dollar-Sign Expansion of File - Include Statement

File inclusions are made using dollar-sign expansions. The syntax is then:

$( include=filename )

The above text will be replaced by the content of the file specified after the equal sign. This feature

is very useful when storing scripts or parts of scripts in text files.

Example:

$(include=C:\Documents\MyScript.qvs);

fkeuroglian
Partner - Master
Partner - Master

Hi

$(must_include=C:\File.txt)

Not applicable
Author

Thanks for your replies

I came to know about the Include statement