Page 1 of 1

Convert string to integer

Posted: Wed May 15, 2019 9:39 am
by Fabio Pagano
Hello,
I have this data "01 h 11 m"
I need to convert part of this data to numeric

so I delimitate a part of data
Mid(Lavori.Rapporto.Chiamata__Tempo_totale__h_m__,5,2)

stimul returns "11" such as string

I need to convert "11" string to 11 numeric

Thanks in advance

Re: Convert string to integer

Posted: Wed May 15, 2019 1:10 pm
by Lech Kulikowski
Hello,

You can sue the Parse() method:
{Int32.Parse(Mid(Lavori.Rapporto.Chiamata__Tempo_totale__h_m__,5,2))}

Thank you.

Re: Convert string to integer

Posted: Wed May 15, 2019 1:49 pm
by Fabio Pagano
Hello,
It works!
Thank you.

Re: Convert string to integer

Posted: Thu May 16, 2019 9:18 am
by Lech Kulikowski
Hello

We are always glad to help you!
Please let us know if you need any additional help.

Thank you.