New topic: Numeric in Textfield
<http://forums.realsoftware.com/viewtopic.php?t=47230> Page 1 of 1 [ 1 post ] Previous topic | Next topic Author Message Tegwin Post subject: Numeric in TextfieldPosted: Sat Mar 09, 2013 10:47 am Joined: Fri Nov 18, 2005 7:26 pm Posts: 18 I am writing an alarm clock app (Just to practise Real Studio) and I am trying to force the TextField to be numeric and also for exmple the hour field to not allowed to be greater than 24 I am getting an error just in the first part of this .. I have used the NOT IsNumeric to test if the Text field is Numeric .. but it does not seem to work , even if I type a number i get the message in the label field. Is this even the right way to do it, or is there a better way, also how can i get it to check if a number is greater than 24 if Not IsNumeric(Me.text) then lblNumeric.Text = "Only Allowed to enter Numbers" End if Top Display posts from previous: All posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost timeSubject AscendingDescending Page 1 of 1 [ 1 post ] -- Over 1500 classes with 29000 functions in one REALbasic plug-in collection. The Monkeybread Software Realbasic Plugin v9.3. http://www.monkeybreadsoftware.de/realbasic/plugins.shtml [email protected]
