Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid valid
Message
 
À
17/08/1998 22:50:16
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Divers
Thread ID:
00127636
Message ID:
00127643
Vues:
26
>I have a grid with several columns that are enabled = .f. I have one column that can be edited. The previous coulumn holds the last value for the meter. I need to be sure that the new value is larger.
>
>So I need to verify that column 4 current row data is less than column 5 current row data before the user leaves that row with the enter key.
>
>Can anyone help me with the syntax?
>
>Thanks

Take a look on AfterRowColChange event of the Grid or Current control Valid event.

Something like:
WITH This
    IF .ActiveColumn = 4
         IF .Column4.Text1.Value < .Column5.Text1.Value
                  DO whatever...
         ENDIF   
   ENDIF
ENDWITH

OR

if you are working on the current column, at Text control Valid event issue:

IF This.Value > Thisform.Column1.Text1.Value
     DO whatever...
ENDIF
JESS S. BANAGA
Project Leader - SDD division
...shifting from VFP to C#.Net

CHARISMA simply means: "Be more concerned about making others feel good about themselves than you are in making them feel good about you."
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform