Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Create a record ?
Message
From
20/11/1996 15:33:31
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00012914
Message ID:
00012919
Views:
28
>When I add a record, the record is appending to
>the database file, however, the first record in the
>database file reflects identical information inputted
>to the new record.
>
>Why is this happening?
>
>Maybe I know, this form that creates the new record
>also accesses other forms for descriptions and
>instructions. I'm using scatter and gather to flip
>back and forth between these forms to add info
>to this new record.
>
>How can I keep the record pointer on the new
>record when switching to other forms? Please keep
>in mind that I browse and create with these forms.

The OO way of doing this is following:
1. Create form property CurrentPointer.
2. Any time you leave the form (in Deactivate event), reset this property: MyForm.CurrentPointer=RECNO() && select right work area
3. Any time you return to form (Activate event) move record pointer:
GO MyForm.CurrentPointer && select right area again
Edward Pikman
Independent Consultant
Previous
Reply
Map
View

Click here to load this message in the networking platform