>Bill,
>>
>>>> I have a form, which has two grids, only one of them is really used, and other should be removed. The removing code was in Form's Init method and it works just fine. When I put the same code into Load method, it failes. Both grids have all columns controlsource set in design-time.
>>>>
>>>> I'm thinking about put NODEFAULT in Grid Init method, if certain conditions are met. Is there simpler approach?
>>>>
>
>>>Couple of thoughts. I believe the objects are not yet instantiated when the form Load fires, hence, your error. I think you should be able to test in the grid Init and just return .F. from the Init to keep the grid from instantiating.
>>
> Ok, I tried it. Two problems I found: 1) I'm still having an error, if it's not a correct structure, so this doesn't help.
>
>2) For some reason, in the grid Init methods it could not recognize constants, defined in the include file, if I'm in the debug mode...
>
>What are the other suggestions?
>
>TIA.
What do you mean by "not a correct structure"? What error are you getting?
Where do you have the #include? If it's in the form's load, then you've got that same problem with the event sequence.
Michelle
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only