ADVERTISEMENT

Convert a string to a number

CarolineGenesis

Newcomer
Sep 29, 2021
24
8
3
Hi Guys,

I’m a new user on Uipath, and I’m facing my first problem trying to convert a string to a number.

I’m getting values from a DataTable into a variable (Heure_Minute_Actuelle_Row) :
row(2).ToString.Substring(9,2)+row(2).ToString.Substring(12,2) → Result is 1032 (as a string)

Then :
I try to convert as a number what I get into Heure_Minute_Actuelle_Row (so 1032) by assigning it a new variable (Heure_Minute_Actuelle_Row_Number) → cint(Heure_Minuite_Row) and I get 0 as number

Could someone help on the topic of how to convert this string into a number?

Thanks a lot.
 
Hi Guys,

I’m a new user on Uipath, and I’m facing my first problem trying to convert a string to a number.

I’m getting values from a DataTable into a variable (Heure_Minute_Actuelle_Row) :
row(2).ToString.Substring(9,2)+row(2).ToString.Substring(12,2) → Result is 1032 (as a string)

Then :
I try to convert as a number what I get into Heure_Minute_Actuelle_Row (so 1032) by assigning it a new variable (Heure_Minute_Actuelle_Row_Number) → cint(Heure_Minuite_Row) and I get 0 as number

Could someone help on the topic of how to convert this string into a number?
How to Convert A String To Number In JavaScript
Thanks a lot.
thanks in advance for any help
 
Hi Guys,

I’m a new user on Uipath, and I’m facing my first problem trying to convert a string to a number.

I’m getting values from a DataTable into a variable (Heure_Minute_Actuelle_Row) :
row(2).ToString.Substring(9,2)+row(2).ToString.Substring(12,2) → Result is 1032 (as a string)

Then :
I try to convert as a number what I get into Heure_Minute_Actuelle_Row (so 1032) by assigning it a new variable (Heure_Minute_Actuelle_Row_Number) → cint(Heure_Minuite_Row) and I get 0 as number

Could someone help on the topic of how to convert this string into a number?

Thanks a lot.

wp4wn3859so41.jpg
 
Hi Guys,

I’m a new user on Uipath, and I’m facing my first problem trying to convert a string to a number.

I’m getting values from a DataTable into a variable (Heure_Minute_Actuelle_Row) :
row(2).ToString.Substring(9,2)+row(2).ToString.Substring(12,2) → Result is 1032 (as a string)

Then :
I try to convert as a number what I get into Heure_Minute_Actuelle_Row (so 1032) by assigning it a new variable (Heure_Minute_Actuelle_Row_Number) → cint(Heure_Minuite_Row) and I get 0 as number

Could someone help on the topic of how to convert this string into a number?

Thanks a lot.
If I put my two cents in we might cause massive devastation by creating murderous A.I. or a computer virus that destroys the internet. Good luck to you.
 
Hi Guys,

I’m a new user on Uipath, and I’m facing my first problem trying to convert a string to a number.

I’m getting values from a DataTable into a variable (Heure_Minute_Actuelle_Row) :
row(2).ToString.Substring(9,2)+row(2).ToString.Substring(12,2) → Result is 1032 (as a string)

Then :
I try to convert as a number what I get into Heure_Minute_Actuelle_Row (so 1032) by assigning it a new variable (Heure_Minute_Actuelle_Row_Number) → cint(Heure_Minuite_Row) and I get 0 as number

Could someone help on the topic of how to convert this string into a number?

Thanks a lot.
sounds like you need to change your battery!
 
Hi Guys,

I’m a new user on Uipath, and I’m facing my first problem trying to convert a string to a number.

I’m getting values from a DataTable into a variable (Heure_Minute_Actuelle_Row) :
row(2).ToString.Substring(9,2)+row(2).ToString.Substring(12,2) → Result is 1032 (as a string)

Then :
I try to convert as a number what I get into Heure_Minute_Actuelle_Row (so 1032) by assigning it a new variable (Heure_Minute_Actuelle_Row_Number) → cint(Heure_Minuite_Row) and I get 0 as number

Could someone help on the topic of how to convert this string into a number?

Thanks a lot.
You misperceive the OTF.

Math and science are wasted here.
 
ADVERTISEMENT
ADVERTISEMENT