Validating column value in TDBFBrowse
Publicado: Vie May 11, 2007 8:25 pm
Hi all!
On my form I have TDBFBrowse with 1 numeric column.
I want to deny user to enter values other than 1 to 100.
How can I make so that the user did not leave oGridEdit (in TDBBrowse)
until he enters the valid value or cancels the changes?
In Xailer's documentation I see that appropriate event is TBrwColumn:OnExit
or TGridEdit:OnExit. These events are fired, but when I return .F. (Do not
Exit), the editing is always finished (with exit from oGridEdit).
See attached sample.
Thank you. Oleg.
Attached files test2.zip (7.3 KB)Â
On my form I have TDBFBrowse with 1 numeric column.
I want to deny user to enter values other than 1 to 100.
How can I make so that the user did not leave oGridEdit (in TDBBrowse)
until he enters the valid value or cancels the changes?
In Xailer's documentation I see that appropriate event is TBrwColumn:OnExit
or TGridEdit:OnExit. These events are fired, but when I return .F. (Do not
Exit), the editing is always finished (with exit from oGridEdit).
See attached sample.
Thank you. Oleg.
Attached files test2.zip (7.3 KB)Â