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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources 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

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