Android Question how to generate event

Yannick Proulx

Member
Licensed User
HI guys,
I'm new here and I'm wondering how to generate an event.
I Use ABZxing and I'm able to call the ABGetBarcode sub, That part is ok
but my program never hit the sub I created called myscanner_BarecodeFound(barCode as string,formatName as string) as the ABBarcodeTest exemple does.

I was wondering if it was because i wrote it manually, and if so , How can I generate this event.

I'm normally working In visual Studio.

Thanks for you help
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
It doesn't matter how you add the sub. Only its signature matters. See this post on how to add the signatures automatically: https://www.b4x.com/android/forum/threads/ide-tips.6546/#post-38342 (it is from the old IDE but the steps are the same).

In most cases the event name parameter is passed to the Initialize method. It should be "myscanner" in this case.
 
Upvote 0

Yannick Proulx

Member
Licensed User
Wow
exactly what I was looking for.
in Visual Studio we have the "handles item.event" that let us know that the event is bonded to sub.
is there anyway to have a visual check showing that a sub is bonded to the event .

Thanks for your fast answer
and Awsome work !!!!!
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…