Jump to content

Just a question

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
1 reply to this topic

#1
2710

2710

    Programmer

  • Members
  • PipPipPipPip
  • 110 posts
So I see that you can do many things with ADOs.One of the features is the 'BeforePost' where I can validate things before I move onto the next record. There is also the onColExit feature, where I can validate things before I move onto the next column. But there is NO onCellExit feature!

This would be nice, because then it would validate the current cell each time, before moving on. In my current program, I have to either click out of the current record or column for it to work. I guess I can put my code into both the colexit and beforepost, but then I would be duplicating my code, kinda inefficient.

Just asking, :P

Thanks

#2
Firebird_38

Firebird_38

    Programmer

  • Members
  • PipPipPipPip
  • 126 posts
 
myform.mytable1colexit(...); begin myvalidate end;
myform.mytable1beforepost(...); begin myvalidate end;
 
procedure myform.myvalidate; begin {validation here, only once} end;
Just copy-paste this into your scrapbook and it'll compile with no modification at all whatsoever.