Costas,
You cannot add an event to a VFP form, only a method. Is the "Start" event you mention within the control? If so, where are you invoking it? If in a PRG, you would have to reference it within the form: fooForm.foo.Start(). If in the form's method, you would use: THISFORM.foo.Start()
Mark
>I added an ActiveX control to a form that happens to have a method called START() and an event called START() (dont ask why they have the same name). I add this to a form and named it 'foo'. In my program I execute the method 'foo.start()'. However the event 'foo.start()' executes instead of the method.
>
>How can I tell the program to execute the method instead of the event?
>Is there a way where VFP distinguishes between methods and events?
>
>I also tried using foo=createObject('regcontrol') instead of adding the control to the form. In this case foo.start() executes the method correctly.
>But how do I make an event start() that gets called when the event happens?
>
>I hope this is not too confusing.
>
>Thanks
>Costas
>
>P.S. This is not a problem in VB since VB creates the event with the name foo_start() and the method as start().
"It hit an iceberg and it sank. Get over it."
Robert Ballard, dicoverer of the Titanic wreckage.