Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
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

1 Solution

Accepted Solutions
Colin-Albert

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

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