Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Record pointer is moving in child table
Message
 
To
29/12/1997 17:33:20
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00068327
Message ID:
00068840
Views:
21
>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

Assuming that your are placing the relational key values in the fields after the append blank, you might want
to go to the parent table a issue a "GO RECNO()" to re-position the pointer in the child table. Barabra is
right that this code should move to the INIT rather than the LOAD event. Also realize you can set the child
table to have Table Buffering rather than Row Buffering in the Data Environment properties.
Frederick Kusin
NetBase Development Group
3746 Folsom Street
San Francisco, CA. 94110
www.netbasegroup.com
Previous
Reply
Map
View

Click here to load this message in the networking platform