Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Create a record ?
Message
De
20/11/1996 15:33:31
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00012914
Message ID:
00012919
Vues:
32
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform