Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Record pointer is moving in child table
Message
De
30/12/1997 15:17:40
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00068327
Message ID:
00068477
Vues:
23
>>In the dataenvironment of my form I have a Parent and a child table. On my form I want to be able enter information into both tables. In the load method of my form I set the buffering for both tables and I do an append blank for both tables. The problem I have is that when the form comes up somehow the record pointer in my child table is advancing 1 which automatically writes the buffered data to disk. If anyone has any suggestions I'd appreciate it because I'm starting to pull my hair out over this.
>>
>>Mark A. Struck
>
>In the January 1998 issue of FoxPro Advisor, on page 74, is a tip of the month which warns about undocumented movement of the record pointer. It seems that if a cursor is row-buffered, moving the record pointer commists changes just as if TableUpdate() had been issued, but WITHOUT the benefit of the code that may have been written to handle a failed TableUpdate(). The article describes three scenarios. A must read.

I don't know why it was happening but I was able to get rid of the behavior by removing all the tables from the data environment and then including them again. I must have set something in one of the tables. I'll take a look at that article so I can find out why this was happening.

Mark A. Struck
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform