Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

how to free the variable memory

Hi all

how to free the variable memory

4 Replies
MayilVahanan

hi

Are you mentioning about script variable?

If so,

Try like this

Set varialbeName = ;

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
CELAMBARASAN
Partner - Champion
Partner - Champion

Try with this

SET vVariableName=null();

or

SET vVariableName=;

Not applicable
Author

Thank you

For  reply,Both are correct

But what is difference between

Let vVariableName=null();

or

LET vVariableName=;

(and)

SET vVariableName=null();

or

SET vVariableName=;

MayilVahanan

HI

From help, you can understand clearly

The let statement has been created as a complement to the set statement, used for defining script variables. The let statement, in opposition to the set statement, evaluates the expression on the right side of the ' =' before it is assigned to the macro variable.

The word let may be omitted, but the statement then becomes a control statement. Such a statement without the keyword let must be contained within a single script row and may be terminated either with a semicolon or end-of-line.

The syntax is:

let variablename =expression

Note that the word let may be omitted.

Examples:

Set x=3+4;

Let y=3+4

z=$(y)+1;

$(x) will be evaluated as ' 3+4 '

$(y) will be evaluated as ' 7 '

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.