Textfield Problems

Updated on April 9, 2015 in [A] GUI
Share on Facebook0Tweet about this on TwitterShare on Google+0Share on Reddit0
5 on April 9, 2015

Hi ,

I need some help the new UI makes me stupid I think

I have 3 Inputfields where the user can Input 3 numbers(float)
and I want to calculate something with this 3 numbers.
But I have no idea how to handle this
How can I store the input in a float variable to calculate with it?

  • Liked by
Reply
3 on April 9, 2015

Do you use C# or Javascript?
In javascript: http://www.w3schools.com/jsref/jsref_parsefloat.asp 
In C#: <a href=”https://msdn.microsoft.com/en-us/library/system.convert%28v=vs.110%29.aspx”>https://msdn.microsoft.com/en-us/library/system.convert%28v=vs.110%29.aspx 

To get the string input from the input fields, you need to give each of them a function to call on EndEdit.

Wise
on April 9, 2015

The C# Link does not work

Guru
on April 9, 2015
Wise
on April 9, 2015

Thx Dion I got it work 🙂

Show more replies
  • Liked by
Reply
Cancel
0 on April 9, 2015

C# I use
Thx I will have a look

  • Liked by
Reply
Cancel