Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid losing recordsource
Message
From
09/07/2002 12:13:49
 
 
To
05/07/2002 11:20:18
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00675378
Message ID:
00676709
Views:
13
>>I'm using VFP7 Sp1
>>
>>I have a form that has been working fine for 2 years. It has not been modified for over 6 months.
>>All of a sudden the 2 grids in the form are SOMETIMES having the RECORDSOURCE set to ''.
>< snip >
>
>Where does the grids loose their RecordSource? At design-time or at run-time?
>If they loose their RecordSource at design-time is it possible that you close and reopen for some reason the tables that the grids are bound to. What kind of RecordSourceType do you use. Does this appear when you run only one form (this one) or you open and close other forms? Is the form modal?

Hi Zlatin,
Sorry this took so long. I went out of town.

Only 1 form loses the RecordSource at run-time for 3 grids. I'm using parameterized views for the record sources. It's a modal form called from a Button.Click() of another form.

We can visually see that the grids have lost their RecordSources as soon as the form is opened, because we can see a black bar along the left of 2 of the grids. These 2 grids have DeleteMark set to .T.
We discovered that if we close the form immediately after opening it the first time, then reopen it, it works fine.

I've reached the conclusion that the SCX file must be corrupted, even though it works fine when we reopen it the second time.
Bill Morris
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform