Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Validating Record on Grid with Row Table Buffering
Message
De
11/10/2005 06:57:04
 
 
À
10/10/2005 22:31:11
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP1
Database:
Visual FoxPro
Divers
Thread ID:
01057836
Message ID:
01057898
Vues:
24
Is it possible to avoid moving record one grid where buffer mode is row table buffering and if the record it is not valid for any reason.

Try this in BeforeRowColChange:
WITH This
  IF INLIST( .RowColChange, 1, 3 )
    *** If we are trying to move to a new row
    *** validate the current row
    IF NOT EOF( .RecordSource ) AND RECCOUNT( .RecordSource ) > RECNO( .RecordSource )  
      *** Do not allow the move if the validation fails
      IF NOT .ValidateCurrentRow()
        NODEFAULT
      ENDIF	
    ENDIF
  ENDIF
ENDWITH
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform