Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Way to te if changing rows in beforerowcolumnchange?
Message
De
08/10/1998 08:42:26
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00144778
Message ID:
00144966
Vues:
27
>>>how to tell if you are changing rows in beforerowcolumnchange? have a way that is working, but wonder what others are using?
>>>
>>>thanks
>>>
>>>brenda
>
>>Usually, it's checked in AfterRowColumnChange event:
>>***Grid.BeforeRowColumnChange
>>Thisform.Gridrecno=recno("curGridsource")
>>***Grid.AfterRowColumnChange
>>IF Thisform.Gridrecnorecno("curGridsource")
>>*** this is new row
>>ENDIF
>
>recno has not changed to new row in beforerowcolumnchange(brcc). want to do row level validation. want to validate before letting the the recno change. and prohibit it from changing by settingn nodefault if not pass the edits.
>
>thanks - brenda

You can still do all this if you use cursor, i.e. you check that row changed in arcc, validate cursor record against table record and either save to table or revert the cursor. Cursor/grid record pointer also can be restored back.
Edward Pikman
Independent Consultant
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform