Quantcast
Channel: Answers for "GUI.Textfield to int ?"
Browsing latest articles
Browse All 4 View Live

Answer by dannyskim

using System; Convert.ToInt32(GUI.Textfield);

View Article



Answer by Eric5h5

It's best if you prevent users from entering anything except numbers in the textfield (see [here][1]), then you can use ParseInt or whatever. Otherwise you need to use TryParse, and other methods...

View Article
Browsing latest articles
Browse All 4 View Live




Latest Images