Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Creating a text variable containing (')

I Need to create a string variable that includes the character ', for example:

Let vCSAC='{$<Dept={'A','B','C'}>}';

can anyone assist

1 Solution

Accepted Solutions
marcus_malinow
Partner - Specialist III
Partner - Specialist III

Try this

LET vCSAC = '{$Dept={' & chr(39) & 'A' & chr(39) & ',' & chr(39) & 'B' & chr(39) & ',' & chr(39) & 'C' & chr(39) & '}>}';

View solution in original post

2 Replies
marcus_malinow
Partner - Specialist III
Partner - Specialist III

Try this

LET vCSAC = '{$Dept={' & chr(39) & 'A' & chr(39) & ',' & chr(39) & 'B' & chr(39) & ',' & chr(39) & 'C' & chr(39) & '}>}';

isorinrusu
Partner - Creator III
Partner - Creator III

Use Set instead of Let:

Set vCSAC1= {$<Dept={'A','B','C'}>};