Skip to main content
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

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