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

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Variables within macro

Hi

I am trying to get the value of a variable to use inside a macro such as QvWorkPath & vFilename

This works on textbox but not inside the macro..

Suggestions??

Meir

2 Replies
alexandros17
Partner - Champion III
Partner - Champion III

Use these function to get and set variables name

function setVariable(name, value)

  set v = ActiveDocument.GetVariable(name)

  v.SetContent value,true

end function

function getVariable(name)

  set v = ActiveDocument.GetVariable(name)

  getVariable = v.GetContent.String

end function

Not applicable
Author

Thanks  Alessandro...