Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid changes record pointer
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01409326
Message ID:
01409330
Vues:
71
This message has been marked as a message which has helped to the initial question of the thread.
>I have code to capture the record number in the BeforeRowColChange to a form property. In 9 of 12 column headers have code to set the order of the data to that field. At the end of the header code it goes to the record variable if it is not equal to the recno. Can anyone tell me why the record pointer jumps around?
>
>* BeforeRowColChange  code
>ThisForm.pnRecord = RECNO()
>
>*End of header code
>WITH ThisForm
>     IF RECNO() != .pnRecord
>          GOTO .pnRecord
>     ENDIF && RECNO()
>ENDWITH 
>
>Thanks in advance, Chuck

It would be more reliable to keep pointer (recno()) in variable, before changing recordsource order, i.e. in the same header code, and then restore after SET ORDER. Grid.beforerowcolchange will not help here.
Edward Pikman
Independent Consultant
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform