Hi!
Just 'return 0' from valid event in case validation failed. Check if Cancel button on form pressed to allow user to exit data changes anyway in case user do not know correct value for field.
>Hi,
>I have a little question :
>On form I have an object with a valid method
>In this I put one condition with if.
>If this condition isnt true I want to remain with cursor on that field for
>put there the true value
>If I try with setfocus it return an error message.
>Another ideas ?
>Thanks a lot
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.comICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs
It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.