Need to remove a " from a string

Hi.

I get a string, and it returns as, example: "200865

I need to remove the ", but it won’t really let me do it… I tried it like this: Replace(”“”“,”“)

But then it throws this error: Assign: “Expression Activity type ‘VisualBasicValue`1’ requires compilation in order to run. Please ensure that the workflow has been compiled.”

Does anybody have a quick fix?

Best regards

Hi @MartinJA

Can you share the code snippet of the Replace you used

Hi @MartinJA

Try this

Output=Input.Replace("""","")

image

Regards,

1 Like

@MartinJA,

Instead or relying on string manipulation, I would suggest to get number from that string using RegEx like this with Assign activity.

Output = System.Text.RegularExpressions.Regex.Match(Input,"[.\d]+").Value

Thanks,
Ashok :slight_smile:

1 Like

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