DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

get a real from Editbox

Solved!
Go to solution

Hello,

 

I would like to get a real from an Editbox

 

For exemple i would like to to type 10,51 and get it into my script.

 

Rignt now i Get a character chain : "10,51"

 

And i would like to convert it into a Real to use it.

 

How can I do That?

 

Best Regards,

 

Frédéric

0 Kudos
Message 1 of 3
(4,340 Views)
Solution
Accepted by topic author fmanuel

Hi fmanuel,

 

Please try this:

 

dVal = Val(EditBox.Text)

 

VAL is a DIAdem function to convert a string to a numeric value. (The other way around is STR)

 

Greetings

Walter

0 Kudos
Message 2 of 3
(4,337 Views)

It work thank you 😉

 

 

fmanuel

0 Kudos
Message 3 of 3
(4,334 Views)