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

Mashiane

Expert
Licensed 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:

Mashiane

Expert
Licensed User
If I remove all the code inside the Sub Clear above, the error is not reported in the logs. Thing is, the error appears even when the code is commented. Thanxs.

Wix.png
 

Attachments

Kiffi

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

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

Greetings ... Peter
 

Mashiane

Expert
Licensed User
Update 2019:06:12 21:16 : When the BANanoObject('$$') is defined in Main and initialized in BANano_Ready, everything works well, will mark the matter as solved.
 
Top