From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

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,352 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,349 Views)

It work thank you 😉

 

 

fmanuel

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