Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
What are exceptions to the global scope of variables in qlik sense
parameters passed in a sub-routine exists only in the scope of that sub routine,
but you can pass those variable values from within a routine to another sub-routine
example:
sub traceMyName(vMyName)
let vNameIs = '$(vMyName)'; <<<---Any variables created using let / set will exist in your app
call anotherSub('$(vNameIs)')
end sub
sub anotherSub(Name)
Trace My Name is '$(Name)';
End Sub
Call traceMyName('Vinie');
Can you explain better your request?
Are all variables in qlik sense global?
Are there any local variables..like if a variable is defined inside a subroutine..is it global or local?
I want to know all places where scope of variable is local
parameters passed in a sub-routine exists only in the scope of that sub routine,
but you can pass those variable values from within a routine to another sub-routine
example:
sub traceMyName(vMyName)
let vNameIs = '$(vMyName)'; <<<---Any variables created using let / set will exist in your app
call anotherSub('$(vNameIs)')
end sub
sub anotherSub(Name)
Trace My Name is '$(Name)';
End Sub
Call traceMyName('Vinie');