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:

Mashiane

Expert
Licensed User
Longtime 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

  • Webix.zip
    226.5 KB · Views: 220
Upvote 0

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
Top