checking text field is less than a number
Posted: Thu Nov 29, 2012 10:07 pm
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 the user has entered a valid date
put field "dinm" into dm
if dm < 32 then
beep
answer "Maximum Days in Month is 31."
select text of me
end if
end closeField
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 the user has entered a valid date
put field "dinm" into dm
if dm < 32 then
beep
answer "Maximum Days in Month is 31."
select text of me
end if
end closeField