Looks like Jim answered this for you already. As he said, you cannot reference the controls before the form is run because they don't exist until the form exists. Passing a parameter to the INIT() method allows you to set the desired enabled/disabled state of the controls before the form becomes visible to the user, which accomplishes what you want from the user's point of view.
>I guess i didn't ask my question clearly. I want to disable and enable the button in my code before the form is run. Depending on which program runs, the button will be enable or disabled.
>
>I don't know how to refer to the button in the object. When I modify the form and the buttons I see "optionsgroup1" then the buttons as "option1" , "option2" etc. This is what I don't know how to refer to in code.
Rick Borup, MCSD
recursion (rE-kur'-shun) n.
see recursion.