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

Function repeat doesn't work

Hello, I am trying to use the function repeat in a macro section, but it doesn't work. Why?

c1_esp=21-len(c1)

temp_c1 = repeat(chr(32),c1_esp) & c1

Thanks

Labels (1)
2 Replies
m_woolf
Master II
Master II

Repeat is a QlikView function. Macros use either vbscript or jscript.

vbscript doesn't have a repeat function.

VBScript

Not applicable
Author

Ok, really... I forgot it.

Here the solution.

c1_esp=21-len(c1)

temp_c1 = string(c1_esp,chr(32)) & c1