Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Where to put code ?
Message
From
18/09/2002 16:58:35
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00702023
Message ID:
00702027
Views:
15
>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 will not "hide" the control - it will make it dissapear completely, or rather, it will make that the control doesn't appear.

>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.

That is correct. You can make the object invisible (change the .Visible) property) from Form.Init().

HTH, Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Reply
Map
View

Click here to load this message in the networking platform