OOPS...that would be
oForm.ctrMyOptions.Visible = .F.
not Visible = .T.
(sheepish grin)
>Hi Justin,
>
>What Gary said is correct...however, you might want to just HIDE the container rather than killing it and re-instantiating it, for performance reasons.
>
>That would be accomplished with:
>
>oMyForm.ctrMyOptions.Visible = .T.
>
>
>>VFP Gurus -
>>
>>I am sure the answer to this is very easy, but it is eluding me...
>>
>>I have a form which has an option group with 4 choices. I have 4 containers of controls, each 'connected' to a particular option so that when the user selects an option, that container appears on the form.
>>
>>The problem I am having is that once one container is displayed on the form, it never goes away - even if the user selects a different option. The only way to have a different container appear is to close the form, reopen it, and select a different option. How would I get the form to destroy any current containers open before pulling up the new container once the user has selected an option?
>>
>>I am using VFP 6.0 with Mere Mortals Framework and Stonefield. The form and containers are actually classes based on form and container. Any help would very appreciated.
>>
>>-Justin
Evan Pauley, MCP
Positronic Technology Systems LLC
Knoxville, TN
If a vegetarian eats vegetables, what does a humanitarian eat?