Qlik Community

QlikView Scripting

Discussion Board for collaboration on QlikView Scripting.

Announcements

Breathe easy -- you now have more time to plan your next steps with Qlik!
QlikView 11.2 Extended Support is now valid through December 31, 2020. Click here for more information.

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

Tags (1)
2 Replies
mwoolf
Not applicable

Re: Function repeat doesn't work

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

vbscript doesn't have a repeat function.

VBScript

Not applicable

Re: Function repeat doesn't work

Ok, really... I forgot it.

Here the solution.

c1_esp=21-len(c1)

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