Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid.AfterRowColChange
Message
 
 
À
22/06/2005 10:20:36
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Novell 5.x
Database:
Visual FoxPro
Divers
Thread ID:
01025389
Message ID:
01025465
Vues:
12
>>Hello,
>>
>>I am using a grid for dataentry. In order to update some properties, I like to use code in the event AfterRowColChange() in the grid.
>>
>>But I found out that in AfterRowColChange() the record pointer in the table did not change yet, it is still at the old record.
>>
>>Is there a way around that?
>>
>>Thanks for your help in advance.
>
>Are you sure? Do you have a reproduction code?
>Cetin

You are right, there was something wrong in the code: I checked RowColChanged, whether it is 1 or 3, which means the row "changed".
IF INLIST(.RowColChanged,1,3)
    THISFORM.RecordKey = MyTale.MyUniqueField
ENDIF
But this description is misleading: The AfterRowColChanged() fires after the fact with RowColChanged = 0.

So I removed the IF and now it works.

Thanks again for your time.
Christian Isberner
Software Consultant
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform