Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Renaming form method causes grid to
Message
From
02/02/2005 11:35:19
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP1
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00982551
Message ID:
00983090
Views:
31
Bernard-

>Got a weird problem with my VFP app. It was a VFP6 app that I ported to VFP9.
>
>I have a form with one grid. After renaming one of the user-defined methods of the form, the grid seems to be destroyed at runtime. Stepping through the code, it seems the column objects were not created, and only the grid exists.
>
>Is this a known issue? How do I rename that method?

Was renaming the method and changing any code references to the method the only change you made between the grid working and not working? Are you sure the grid is being destroyed, and just not being built in the first place? For example, after the form is finished with its init, is the RecordSource set to what you expect and is the RecordSource populated? What happens if you reset the RecordSource?
ThisForm.MyGrid.RecordSource = myCursor
for example. You probably know that the classic cause of a grid being destroyed is requerying the RecordSource without first setting the RecordSource to "".
Previous
Reply
Map
View

Click here to load this message in the networking platform