Skip to main content

QlikView App Dev

Discussion Board for collaboration related to QlikView App Development.

Announcements
QlikWorld 2023, a live, in-person thrill ride. Save $300 before February 6: REGISTER 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!

bill_markham
Champion III
Champion III

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

Not applicable
Author

Thx Bill, it works.

Strange syntax though:)