Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
madushanfernand
Contributor III
Contributor III

Calling a sub function at load script

Hi All

I need to run a sub function at load script. i got to know that a sub function can't be called within the load script but a function.but i found following code from somewhere in a blog.

could some one please help me on how to call a sub function at load script.

if someone can send  a qvw would be much help full. 

Thanking in advance.

Madushan

 

FUNCTION MyFunction()

MySub

END FUNCTION

SUB MySub

Msgbox(“Hello world”)

END SUB

3 Replies
Sue_Macaluso
Community Manager
Community Manager

Is this referring to QlikView or Sense? I would like to move it into the correct product forum.
Sue Macaluso
Brett_Bleess
Former Employee
Former Employee

I suspect the first piece you may have been trying to find is here:

https://help.qlik.com/en-US/qlikview/November2018/Subsystems/Client/Content/QV_QlikView/VBFunctionCa...

Here is an Article with some further reference points too:

https://support.qlik.com/articles/000003384

I believe there is a piece that needs to be changed in Distribution Service config to allow the function to be called as well, but I cannot find that at the moment, so if you need that, let me know, and I can try to track it down and respond with that info later, hopefully this may help get you on track.  

To help users find verified answers, please do not forget to use the "Accept as Solution" button on any post(s) that helped you resolve your problem or question.
I now work a compressed schedule, Tuesday, Wednesday and Thursday, so those will be the days I will reply to any follow-up posts.
albertovarela
Partner - Specialist
Partner - Specialist

Not sure what do you mean by a function but if what you are trying is create and execute a subroutine you can use the Call statement.  

Take a look at: https://help.qlik.com/en-US/sense/February2019/Subsystems/Hub/Content/Sense_Hub/Scripting/ScriptCont...