jinyistudio Well-Known Member Licensed User Longtime User Oct 8, 2016 #1 Hi My compoent have a Event named YesOrNo. Could i pass a byRef parameter and then I could return a value from YesOrNo to Component ?
Hi My compoent have a Event named YesOrNo. Could i pass a byRef parameter and then I could return a value from YesOrNo to Component ?
Erel B4X founder Staff member Licensed User Longtime User Oct 9, 2016 #2 How are you raising the event? With CallSub? CallSub returns a value. Upvote 0
jinyistudio Well-Known Member Licensed User Longtime User Oct 9, 2016 #3 Yes, I will use callsub to rasing that event. Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Oct 9, 2016 #4 B4X: Sub MyEvent_Event As String Return "abc" End Sub Dim res As String = CallSub(Target, CallBack & "_Event") Upvote 0
B4X: Sub MyEvent_Event As String Return "abc" End Sub Dim res As String = CallSub(Target, CallBack & "_Event")