Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Where to put Implements?
Message
From
22/01/2004 06:19:57
 
 
To
22/01/2004 03:17:55
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00868196
Message ID:
00869418
Views:
21
>>I mean using a non-visual class which implements the SOAP Toolkit interface. Then, in your visual code, you do something like:
>>
>>
>>this.oSoap = NewObject( "MichelSoap", "MichelSoap.prg" )
>>BindEvent( this.oSoap, "YourHook", this, "CustomDelegateMethod" )
>>
>>
>>where CustomDelegateMethod it is a method you added to your form that acts as a delegate for the object YourHook event.
>
>What does the this, as the 3rd parameter, means?

You should read it as: Bind the event YourHook from the object this.oSoap, to the method CustomDelegateMethod of the object this (in this context, your form).

Try this to understand BindEvent. Create a blank form and put just:
* Form Init
BindEvent( _Screen, "Resize", this, "MyDelegate" )

* Create a MyDelegate custom method and write this code in in:
this.Caption = transform( _Screen.Width ) +" x "+ transform( _Screen.Height )
Now run the form and resize the VFP desktop to different sizes. Your form will trap the event and reflect it in its caption.

Hope this helps,
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform