Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Occasionally disappearing grids
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
Miscellaneous
Thread ID:
01479327
Message ID:
01479499
Views:
45
Very good! More steps in the right direction.

My tables are indexed, but not related to other tables, and the problem does occur (somehow) with the Activate.

Most curiously, this is occurring on three of the five pages in the pageframe (pages 3-5). The form remembers which page was active when it closes, and then activates that page when it starts. The problem only occurs when it is resuming on page 2 ... and then it happens all the time.

And, of course, I can see no obvious connection between pages 3-5 with page 2 -- nor can I see why starting on page 1 doesn't have the same effect.

I will let you know should Ilearn more.


>Step in the right direction I guess.
>
>The cursor that is the recordsource for the grid - is it indexed or related to another table somehow? Like if you're on PageFrame A, go to a particular record - then go to PageFrameB ...does PageFrameB's grid dependent upon the value you've selected in PageFrameA?
>Trying to debug issues that are with activate() events is always a hassle. One thing you might try to do is to start putting a bunch of wait-window's or messageboxes in there to try to pinpoint then the recno() changes.
>
>
>
>>Yes, in fact, that is exactly true ... exactly, I am at EOF() !!!! Good for you!
>>
>>And I have spent all evening trying to track down how that occurs -- I have found a bloody GOTO TOP which does not seem to be followed by any statement that changes the record position.
>>
>>That is the answer, indeed, now I just have to find what does it.
>>
>>And, I have found a sequence of steps which I can rely on to cause the error -- it depends on which page in the pageframe I decide to show first.
>>
>>Odd, indeed.
>>
>>>>>Neither has any effect.
>>>>>
>>>>>Good idea, though.
>>>>
>>>>Just to be sure your assumptions are correct,
>>>>log the state of the RecordSource cursor by scanning or counting and resetting to recno before log.
>>>
>>>Perhaps he's at EOF() when the grid is trying to display??
>>>
>>>>
>>>>>>>Let me phrase the question differently.
>>>>>>>
>>>>>>>I have a grid. The RecordSource has 16 records and is unfiltered. The record pointer is on the first record. There are a number of columns. The controlsources are all correct, and refer to fields in the grid.
>>>>>>>
>>>>>>>But no records show. When this happens, I am not able to do anything to make any records show either (and would welcome suggestions)
>>>>>>>
>>>>>>>And this happens sporadically and inconsistently.
>>>>>>>
>>>>>>>Guesses?
>>>>>>>
>>>>>>Have you tried
>>>>>>
>>>>>>thisform.Draw()
>>>>>>
>>>>>>or
>>>>>>
>>>>>>thisform.cls()
Jim Nelson
Newbury Park, CA
Previous
Reply
Map
View

Click here to load this message in the networking platform