Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Record pointer is moving in child table
Message
De
30/12/1997 11:14:31
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00068327
Message ID:
00068412
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
>
>Mark, are you using the grid properties to set a relationship between parent and child tables? If so, then this is probably your culprit. When the internal relation is set the record pointer is re-set to the first matching child record, not the blank record. Try putting your append blank code in the init so it fires AFTER all the other setting-up code.
>
>HTH
>Barbara

Hi Barbara,

Actually I'm not using a grid in my form and I already have my cursorsetprop's and append blank's in the init method of my form. Also, the record pointer is moving after the init method and it's only advancing 1 record. Thanks for your suggestions though.

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

Click here to load this message in the networking platform