Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
Georgy_Paul
Contributor II
Contributor II

Variable declaration

What does

LET vVariable = chr(39) &  'ABC'  & chr(39) & ',' & chr(39) &  'XYZ' & ',' mean ? I want to know how does this work !

Labels (1)
1 Solution

Accepted Solutions
Vegar
MVP
MVP

Chr(39) equals apostrophe '

Your variable will be set to: 'ABC','ZYX,

I'm assuming by the look of it that you might miss an ending apostrophe in your definition  

View solution in original post

2 Replies
Vegar
MVP
MVP

Chr(39) equals apostrophe '

Your variable will be set to: 'ABC','ZYX,

I'm assuming by the look of it that you might miss an ending apostrophe in your definition  

Channa
Specialist III
Specialist III

you dont need to use single cote if you using Chr(39)

 

when you call varibale vVariable  it will convert Chr(39) in to single cote

 

if you use Set variable $(vVariable ) it will convert Chr(39) in single cote

Channa