How to remove "€" from string

In_strNetTotal holds string value

In_strNetTotal = “€289.24” so I want to cut only first part of string which is € and only want 289.24…what I need to do…
€ here any kind of sign is possible…so want to remove this

Hi,

You can use replace method:

In_strNetTotal.Replace("€", "")
Will return the string without the “€”

Regards

2 Likes

@rutuja.y

Check below for your reference

image

It will leave one character and starts from 2nd

If you need only to replace if € is in the string then as suggested @AdryGL.96 you can use Replace

Hope this may help you

Thanks

2 Likes

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.