Mashiane Expert Licensed User Longtime User Jun 12, 2019 #1 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 '$$'. Code: '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. Code: ERROR 28: [formclear, around line: 117] clear was neither found as global variable, nor method in wixform! being called from the Main Module.. Code: Sub formClear myForm.Clear End Sub where myForm is defined in Process_Globals.. How do I initialize the '$$' object successfully? Last edited: Jun 12, 2019
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 '$$'. Code: '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. Code: ERROR 28: [formclear, around line: 117] clear was neither found as global variable, nor method in wixform! being called from the Main Module.. Code: Sub formClear myForm.Clear End Sub where myForm is defined in Process_Globals.. How do I initialize the '$$' object successfully?
Kiffi Well-Known Member Licensed User Longtime User Jun 12, 2019 #2 To be able to help you, I need more informations: e.g. what is wixform? Greetings ... Peter Upvote 0
Mashiane Expert Licensed User Longtime User Jun 12, 2019 #3 Kiffi said: what is wixform? Click to expand... Hi Peter, thanks, wixform is just the name of my class module. Let me see if I can have the project linked here. Upvote 0
Kiffi said: what is wixform? Click to expand... Hi Peter, thanks, wixform is just the name of my class module. Let me see if I can have the project linked here.
Mashiane Expert Licensed User Longtime User Jun 12, 2019 #4 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. Attachments Webix.zip Webix.zip 226.5 KB · Views: 570 Upvote 0
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.
Kiffi Well-Known Member Licensed User Longtime User Jun 12, 2019 #5 It seems as if the double dollar ("$$") is confusing BANano (even if it is commented out). Workaround: Try Dollar.Initialize("$" & "$") Greetings ... Peter Upvote 1
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 Longtime User Jun 12, 2019 #6 Thanks Peter, will implement that and see if it works Upvote 0
Mashiane Expert Licensed User Longtime User Jun 12, 2019 #7 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. Upvote 0
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.
Mashiane Expert Licensed User Longtime User Jun 12, 2019 #9 @Johan Hormaza , Please see the github download link on this post, just now updated https://www.b4x.com/android/forum/threads/bananowebix-proof-of-concept.106703/ Last edited: Jun 12, 2019 Upvote 0
@Johan Hormaza , Please see the github download link on this post, just now updated https://www.b4x.com/android/forum/threads/bananowebix-proof-of-concept.106703/