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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

I want create variable in script level ?

Hi

  i want create a N no of variable in script level .how i can do any one suggests me

  v1=1,

v2=2,

v3=3,

v4=4,

.

.

..

.

.

.

vn=n    like that

Labels (1)
1 Reply
Not applicable
Author

try this script

let n = 50;

let fieldName = 'V';

for i = 1 to n

     let $(fieldName)$(i) = $(i);

next i