Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
My view keeps moving to its last record
Message
De
26/01/2001 07:10:04
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
My view keeps moving to its last record
Divers
Thread ID:
00468962
Message ID:
00468962
Vues:
37
Ok I know that I should have used a private data environment but......
My view (v_ticket) keeps moving to its last record

I have a form (form1) that uses the public data environment.
this form manages the table v_ticket.

It calls another form (form2) which also uses the public data environment.

Form2 does not attempt to establish its own environment and has datasession set to public.

Form2 has a listbox on it that has nothing to do with v_ticket.

when the init event for my first object on form2 runs, the record pointer in v_ticket jumps to the last record.

This appears to be a sign of V_ticket getting requeried but I am not sure thats what is happening.

I suppose I can bodge my way out of the problem this by putting the record pointer back to where it should be but I wondered if someone can explain to me what is happening here.

I dont want to change the code to work with a private data session unless I have to because the form2 makes many references to a record in v_ticket.

Any help at all much appreciated
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform