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: 
kris_vliegen
Partner - Creator III
Partner - Creator III

Replace single quote in string

Hello All,

I have customer-names with a single quote in it.

How can I replace this single quote into a blank in the reload-script?

Regards

Kris

Labels (1)
1 Solution

Accepted Solutions
Colin-Albert
Partner - Champion
Partner - Champion

PurgeChar(YourField, chr(39))

will remove all single quotes from <YourField>

View solution in original post

5 Replies
christophebrault
Specialist
Specialist

Hi,

You can use :

=replace(YourFieldName,chr(39),' ')

Inscrivez vous à ma Newletter Qlik
DoNotMissQlik- Connect with me on Linkedin
Colin-Albert
Partner - Champion
Partner - Champion

PurgeChar(YourField, chr(39))

will remove all single quotes from <YourField>

Not applicable

Try this in the script...

PurgeChar(Cust_Name, chr(39)) as Cust_Name;

kris_vliegen
Partner - Creator III
Partner - Creator III
Author

Thanks for the quick response.

The PurgeChar is working for me.

I'm reading from an i-series database.

And I try to implement google maps.

I get an error if I try to read this Field.

How Can I convert this 'blok' caracter to a space?

Adress.PNG.png

Regards,

Kris

kris_vliegen
Partner - Creator III
Partner - Creator III
Author

And I see this field in Qlikview as just a normal text

Adress1.PNG.png

And I get this error in the script.Adress2.PNG.png

Regards,

Kris