Information générale
Catégorie:
Gestionnaire d'écran & Écrans
>>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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement