Is it possible to convert a string value to double in Add Data Row Activity?

Hi Guys,

Can I convert the below string variable to double in Add Data Row UiPath activity itself ?

I tried using CDbl(stringvariable) but it didn’t work, maybe I had the wrong syntax.

1 Like

Hi @shikharno.7

You can try this way in Add Data Row. Make to to start the curly brace.

CDbl(Input).ToString

Regards

1 Like

we would define the ArrayRow by
new Object(){var1,var2…}

we can write within also conversions like
CDbl(yourStringVar)

we dont know what was done, what is failing.

However, you can prototype within the immediate panel fast and direct
Understanding the 6 Debugging Panels of UiPath in the easiest way possible! - News / Tutorials - UiPath Community Forum

1 Like

Hi @ppr

I am trying to convert the below variable to double value.

image

and then trying to pass it in Add Data Row activity and getting the error -
image

Is there a way I can pass to Add Data Row without converting it to String.

1 Like

Wouldn’t this convert to String Variable ?

My query is below in detail -

1 Like

we mentioned:

and the error message gives the same hint

so prepend new Object()

1 Like

Hi @shikharno.7

Try this way then:

Regards

1 Like

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