Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

QV /v - variable value containing white space?

Hi

Is it possible to specify a variable containing a whitespace?

Ex:

  • qv.exe /r /vMyvar=123 abc.qvw     //OK
  • qv.exe /r /vMyvar='123' abc.qvw   //OK
  • qv.exe /r /vMyvar='1 2' abc.qvw    //FAILS
  • qv.exe /r /vMyvar="1 2" abc.qvw   //FAILS
  • qv.exe /r /vMyvar=´1 2´ abc.qvw   //FAILS

By the way, I am trying to use Myvar in the script. To reference it I use $(Myvar)?

Kind regards

OS

4 Replies
luciancotea
Specialist
Specialist

If it is a string, use '$(Myvar)' in script

Not applicable
Author

Try

qv "/vMyvar=1 2"

as an ultimate solution!

Anonymous
Not applicable
Author

qv.exe /r "/vMyvar=1 2" abc.qvw

Not applicable
Author

Thx Bill, it works.

Strange syntax though:)