W wl Well-Known Member Licensed User Longtime User Jul 9, 2012 #1 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
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
Erel B4X founder Staff member Licensed User Longtime User Jul 10, 2012 #2 Yes you can call callback subs. See the Table class for an example: [Class] TableView - Supports tables of any size Upvote 0
Yes you can call callback subs. See the Table class for an example: [Class] TableView - Supports tables of any size
W wl Well-Known Member Licensed User Longtime User Jul 10, 2012 #3 Great, I was thinking on using the CallSub method, but this really shows me how. Thanks again Upvote 0