Search found 2 matches

by ady.bolton@me.com
Thu Nov 29, 2012 10:17 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: checking text field is less than a number
Replies: 2
Views: 2316

Re: checking text field is less than a number

Sorry, think I'm just tired. Fixed it now without doing much different:

on closeField -- make sure the user has entered a valid date
put field "dinm" into dm
if dm > 31 then
beep
answer "Maximum Days in Month is 31."
select text of me
end if
end closeField
by ady.bolton@me.com
Thu Nov 29, 2012 10:07 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: checking text field is less than a number
Replies: 2
Views: 2316

checking text field is less than a number

I'd like to check the number entered into a text field is less than 32 on loosing focus of the field. I've tested the below code with <> and it pops my message up correctly. I can't get < to work though and I've tried everything. I can't believe I've spent 2 hours on this! on closeField -- make sure...