Hi Charles,
Write an additional command that checks the contents of all fields.
For example:
funtion checkFields
repeat with x = 1 to number of fields of grp 1
if fld x of grp 1 is not a number or fld x of grp 1 0 or fld x
of grp 1 10 then
return false
end if
end
I have entry fields that the user fills in with numbers by using the
tab, return or enter keys. Each field is checked for a range of
scores by catching the exit or close field. If the user enters a
number that is above the range for the entry field, a dialog box
appears warning them of the
Hi Charles,
I'm sure someone else will provide a more elegant solution, but you
may always validate the values within each of the fields as part of
the operation of the Calculate button, correcting the inappropriate
values prior to completing the calculation.
Joe Wilkins
On May 6, 2007,
Hi Charles,
From an ergonomic point of view, it's probably not a very good idea to:
. Alert the user when he is wrong. I would not like a software that
tells me: 'Be careful what you are doing, absent minded!' :-)
. Not to allow the user to use the Tab or Return keys as he is used
to. I
Charles Szasz wrote:
I have entry fields that the user fills in with numbers by using the
tab, return or enter keys. Each field is checked for a range of scores
by catching the exit or close field. If the user enters a number that is
above the range for the entry field, a dialog box appears