Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Where to put code ?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00702023
Message ID:
00702048
Views:
17
Mark, thanks for your reply.

My problem is that I cannot use the Init of the object to set it to Invisible because I have to wait until the init of the Form, because I have a parameter coming in which determines whether the control will be visible or not.

Gerard



>Set the Visible property of the controls to FALSE for the ones you may want hidden. Then in the INIT set Visible to true for the ones you need.
>
>>I have a form, where there are certain controls I want to hide.
>>My first attempt was to put the code in the Init event of the control e.g. If MyCondition
>> Return .f.
>>Endif
>>
>>This worked fine until I was using a form which , in the Init of the Form, did some processing on a file, and the results determined whether the control on the form was hidden or not.
>>
>>But the Init of the Form seems to be run AFTER the init of each object, so I cannot use this method.
>>
>>I would appreciate any other suggestions.
>>
>>regards,
>>
>>Gerard
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform