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:
00702484
Views:
14
Mark,Thanks again for your reply.

The suggestion of initaially setting controls to invisible and setting then to visible ,even though it may work, I think is not the best solution here, as most of the controls will be visible, and the Exception is that the control is to be made invisible. I would prefer workin the other way round.

What I have done now is a s follows:
1. OSet up a form array property and initialize it on screen load
2. During Init of each control on the form, update this form property with the controls I want to make invisible
3. Then on the form Init, access this Form property and loop around making each form control invisible

As usual, there are many ways to skin the cat and I think yhis sounds more intuitive for this particualr problem.

Thanks again everybody for your help on this one.

regartds
Gerards







>I understand that. Set the visible property of these controls to FALSE now at design time, not at runtime. This is done on the Property sheet for the controls, not in the INIT. When your form receives the parameter in the FORM INIT, then instead of trying to hide controls based on the INIT parameter, you will un-hinde [set the VISIBLE property to TRUE] the controls based on the parameter. Just reverse your process.
>
>>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.
Previous
Reply
Map
View

Click here to load this message in the networking platform