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

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
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

Labels (1)
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:)