Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
When is Private DE not Private?
Message
From
08/04/1998 19:14:03
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
When is Private DE not Private?
Miscellaneous
Thread ID:
00090627
Message ID:
00090627
Views:
68
I have a strange problem I can't seem to resolve. I have an old VFP3.0 app that has a main form that displays a typical contract information. This form's DE is set to private. Within this form there is a routine that enables the user to pop open a different modal screen which is use to print contract information to the printer. This second modal screen's DE is also set to private and it enables the user to print more than one contract info. (eg specific date rage). Upon entering a user-defined criteria, a SQL-SELECT is used to create a cursor and then a report form is call to print the records in the cursor. So far, so good.

The problem is, after this routine is run, the record pointer of the contract table is somehow moved to the BOF, regardless of which rec the form was at before the routine is run! I've checked and rechecked the code to make sure I'm not issuing any command that would do this. What could cause this???

The code in the routine is very simple:

*--contr_id is PK that is passed to the modal form to give the
*--user the option to print only this particular contract.
DO FORM contrcov WITH contract.contr_id

I get an error message saying that "Data environment have already been unloaded" after closing the modal form.

TIA
John.
It's "my" world. You're just living in it.
Next
Reply
Map
View

Click here to load this message in the networking platform