wjfisch
19th February 2003, 13:34
I've problems checking a field at the point of saving the dataset. Filling the mask it should be possible to TAB through the field (otherwise I could use 'check.input').
I tried:
choice.update.db:
before.choice:
if isspace(tfacp200.orno) then
message("...")
choice.again
endif
In the first step this used to work (the message was shown and no update of the database was done), but I had the problem that after klicking the SAVE button it was not possible to enter the field or save again (even when an input was made to the field before) without showing the message.
How could I solve this problem ?
Solution:
working with the predefined variable 'choice', I inserted in the 'check.input' section:
if choice = update.db then
if isspace(tfacp200.orno) then
set.input.error("...")
endif
endif
(this works because in choice.update.db a 'check.all.input' is called automatically).
I tried:
choice.update.db:
before.choice:
if isspace(tfacp200.orno) then
message("...")
choice.again
endif
In the first step this used to work (the message was shown and no update of the database was done), but I had the problem that after klicking the SAVE button it was not possible to enter the field or save again (even when an input was made to the field before) without showing the message.
How could I solve this problem ?
Solution:
working with the predefined variable 'choice', I inserted in the 'check.input' section:
if choice = update.db then
if isspace(tfacp200.orno) then
set.input.error("...")
endif
endif
(this works because in choice.update.db a 'check.all.input' is called automatically).