Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Memvar comes and goes on pageframe
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Title:
Memvar comes and goes on pageframe
Miscellaneous
Thread ID:
00707351
Message ID:
00707351
Views:
57
I have a form with a pageframe with two pages.
In the load portion of the form, I run some queries to load the main record from a sql database, along with several over small queries for lookup data for combolist. In the load portion of the form, I determine if the user is doing a new record or updating an existing one. I then select the primary record cursor (schcase), and scatter memvar for edit mode or scatter memvar blank for new mode. On both pages, the data controls are bound to the m.memvar whatever the field name is. It works great on a new record for both pages. When I'm in the edit mode, the first page is great, but page two's controls have no data. I put a button on page two and put:

wait [Field Value=]+transform(m.PrimaryCarrierID) window

If I click on the button, I get an error message saying m.PrimaryCarrierID is not defined. But it was. If I put some data into the fields first and then push my button, it shows the data fine. I also copied the button to the first page and I still received the error unless I first put in data.

I display the same wait command right after the scatter in the show and it is there. I used the debugger and put a watch on m.PrimaryCarrierID and it changed after my scatter with the value, then it disappeared on the page1 activate, and when I clicked on page2 (where the value should appear) it changed again to a blank value.

Any clues?
Next
Reply
Map
View

Click here to load this message in the networking platform