Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
My view keeps moving to its last record
Message
From
26/01/2001 07:10:04
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
My view keeps moving to its last record
Miscellaneous
Thread ID:
00468962
Message ID:
00468962
Views:
34
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
Next
Reply
Map
View

Click here to load this message in the networking platform