Information générale
Titre:
On making records Read Only
Hi again guys and girls,
I have spent a few moments (well, maybe longer) trying to figure out the best / most user-friendly / least tedious-to-code way to make a RECORD (not table, not field) (in a grid most, but not all, of the time) ReadOnly. Without thinking too hard, I can imagine a half-dozen techniques to do same. But I would like to know if there is some sort of standard VFP way to do this.
Among the ways I can imagine are:
fields' WHEN property: RETURN IIF(condexpr,.T.,.F.)
intercepting a SAVE based upon the condexpr
interactiveRowColChange: THIS.ReadOnly = IIF(condexpr,.T.,.F.)
etc.
But they don't feel right to me. I want something that works at the record level and is obvious code when you see it.
TIA,
David
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement