B4J Question Sub name

Daestrum

Expert
Licensed User
Longtime User
How can I pass a sub name to a library. (like timer has a parameter for the sub name to be called)

I have tried listing all the declared methods in the module, but can't find the subs.
 

Daestrum

Expert
Licensed User
Longtime User
working on the jAnimation library, but want to be able to handle some events in the b4J program, such as eventhandlers for animations.
 
Upvote 0

Daestrum

Expert
Licensed User
Longtime User
Thank you, for the speedy reply and a great programming tool.
 
Upvote 0

Daestrum

Expert
Licensed User
Longtime User
I have read lots of the postings, and still I cannot grasp how it it supposed to work.
the sub in the B4J is checkPath
I have added BA ba; to code, but even calling ba.subExists("checkPath") generates a null pointer exception.
I have tried with "checkpath" "_checkpath" "_checkPath" all with the same result.

Stumped....
 
Upvote 0

Daestrum

Expert
Licensed User
Longtime User
Thank you - didn't realize BA was a hidden parameter sent with the call.
Working now :)

Its amazing that a simple hint opens up your eyes to what to do.

So glad there are people on here who
a) know what they are doing
b) don't mind helping others.
 
Last edited:
Upvote 0
Top