Kirix Support Forums

IsNumeric and Empty

Please post any help questions, requests or other feedback here.

IsNumeric and Empty

Postby abenitez77 on Tue Jun 19, 2012 1:06 pm

I want to check a textbox on my form to see if it has a numeric value and I also want to check to see if it is empty. I was looking for 2 functions IsNumeric() and Empty() but could not find equivalent funcs. Can you please help?

thanks,
alex
abenitez77
Registered User
 
Posts: 143
Joined: Fri Jan 21, 2011 12:42 pm

Re: IsNumeric and Empty

Postby Ben on Mon Jun 25, 2012 5:17 pm

On a GUI Form, you'll need to use JavaScript string manipulation functions to test for numerical values. In particular, the Regexp class in Js is interesting for this purpose. For checking empty values, just check the value of str.length, where str is your string variable. If str.length is zero, your textbox is empty.
Ben Williams
Kirix Support Team
User avatar
Ben
Kirix Support Team
 
Posts: 525
Joined: Mon Dec 19, 2005 6:29 am

Return to Strata Help & Feedback