I think, you might accidentally use a VFP reserved word as you method's name. What is the method's name?
>>Hi all:
>>
>>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?
>>
>>Any help is highly appreciated.
>>
>>TIA
>
>>I'm not aware of a specific problem with renaming a method, but I know if there are any syntax problems when you setup a grid in code that it will cause the grid to go blank. Is that what you're seeing? Have you double-checked for typos?
>
>
>Hi Barbara:
>
>Thanks for your reply. I am quite sure that there are no typos because before I renamed the form method, it was running. After I renamed it, I made sure all code that referenced that old method name was changed.
>
>For now, what I am doing is not to rename the method at all.
>
>Regards
If it's not broken, fix it until it is.
My Blog