I'm in trouble again. I've googled again. No luck again. Tearing hair out again.
I'm using a text field with number formatter, but can't get a value from it. The code is below, and crashes on the second line. It returns a null value if I change it to
Any suggestions on what I'm doing wrong please.
on setminEmail_(sender)
set MinEmailFlag to MinEmail's intValue() as integer
set MaxEmailFlag to MaxEmail's intValue() as integer
try
if MinEmailFlag < 1 or MinEmailFlag > 10000 then
my Writemessages("That Entry is out of range.")
MinEmail's setStringValue_("1")
else
if MinEmailFlag > MaxEmailFlag then
set MinEmailFlag to MaxEmailFlag
MinEmail's setStringValue_(MinEmailFlag)
my Writemessages("Enter the high number first please.")
end if
end if
on error
my Writemessages("Try entering a number please.")
MinEmail's setStringValue_("1")
end try
my Clearmessages()
end setminEmail_
And what, you ask, was the beginning of it all?
And it is this......
Existence that multiplied itself
For sheer delight of being
And plunged with numberless trillions of forms
So that it might
find
itself
innumerably
Sri Aurobindo