B4J Question [BANAno] [SOLVED] Error 28: Calling Class Instance Subroutine

Mashiane

Expert
Licensed User
Longtime User
Ola

Update: I have declared the BANanoObject in Main using '$$' and everything works well, when defined in a class, dololo. The resulting outcome is explained here BANanoWebix

I need to initialize an object just like jquery but this one is '$$'.

B4X:
'clear the form
Sub Clear
    'Dim d As String = "$$"
    'Dim Dollar As BANanoObject
    'Dollar.Initialize(d)
    'Dollar.Selector(ID).RunMethod("clear",Null)
End Sub

This is resulting in error whether the code is commented / not.

B4X:
ERROR 28: [formclear, around line: 117] clear was neither found as global variable, nor method in wixform!

being called from the Main Module..

B4X:
Sub formClear
    myForm.Clear
End Sub

where myForm is defined in Process_Globals..

How do I initialize the '$$' object successfully?
 
Last edited:

Kiffi

Well-Known Member
Licensed User
Longtime User
It seems as if the double dollar ("$$") is confusing BANano (even if it is commented out).

Workaround: Try Dollar.Initialize("$" & "$")

Greetings ... Peter
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…