Timothy,
In VFP help, look at the example under the addObject method. That example creates a form and adds 3 command buttons, and shows code in the click() method of each commandButton.
>>>Hello, I created a form non-visually using "CREATEOBJECT("Form")" and in my with/endwith statement defined the characteristics for a commandbutton. However, since I don't usually create forms this way, I'm not sure how to test for the commandbutton being clicked. any ideas? thanks
>>
>>I think you need to add a Click() method to the button. This can be done by adding a CommandButton based on a class of yours.
>>
>>HTH, Hilmar.
>
>Wuld that be inserted within the with/endwith statement? Can you give an example? thanks.
Steve Gibson