Classes and callbacks

wl

Well-Known Member
Licensed User
Longtime User
Hi,

Is there any way to have a class instance call a callback function ?

I would like to encapsulate socket communication in a class method. I would call this method (which would make the connection - if possible - send data and retrieve the result).

The result of this method would be the exection of a Success or Failure method.

What would be the best approach to this ?

Thanks
 

wl

Well-Known Member
Licensed User
Longtime User
Great,

I was thinking on using the CallSub method, but this really shows me how.

Thanks again
 
Upvote 0
Top