Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Execute the parent class method, but not a grandparent
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00535248
Message ID:
00535805
Vues:
15
This message has been marked as a message which has helped to the initial question of the thread.
>>>
>>>Right, but I have custom code in valid event of the grid, which I call from textboxes valid. Even with dodefault() in valid, I had refresh called.
>>>
>>>Do you think, it would be better to call custom grid method instead of Valid method? I think, I'll add a new method Validate to a grid, and make necessary changes...
>>
>>I don't know Nadya. All I know is valid usage is tricky and might catch you if you have say row level validation.
>>Cetin
>
>I have table level buffering. I realized, that row level would not work, so I proposed some changes in our framework.

Row-level buffering is near impossible to use correctly in grid because record become automatically updated as soon as grid is refreshed. Column.Refresh will cause auto-update too.

As about Valid event of grid, it is fired when grid lose focus, as far as know, so probably it can cause no conflicts but just will be called twice - once from control (your manual call) and once from grid (automatic call as event). From the OOP point of view better make a custom method. Direct call of event (like button.Click) should be avoided with exception of special situations.
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform