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

Discussion in 'B4J Questions' started by Mashiane, Jun 12, 2019 at 8:30 AM.

  1. Mashiane

    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 '$$'.

    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 at 8:15 PM
    joulongleu likes this.
  2. Kiffi

    Kiffi Active Member Licensed User

    To be able to help you, I need more informations: e.g. what is wixform?

    Greetings ... Peter
     
    joulongleu likes this.
  3. Mashiane

    Mashiane Expert Licensed User

    Hi Peter, thanks, wixform is just the name of my class module. Let me see if I can have the project linked here.
     
    joulongleu likes this.
  4. Mashiane

    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
     

    Attached Files:

    joulongleu likes this.
  5. Kiffi

    Kiffi Active 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
     
  6. Mashiane

    Mashiane Expert Licensed User

    Thanks Peter, will implement that and see if it works
     
  7. Mashiane

    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.
     
  8. Johan Hormaza

    Johan Hormaza Active Member Licensed User

  9. Mashiane

    Mashiane Expert Licensed User

    Last edited: Jun 12, 2019 at 11:15 PM
    joulongleu and Johan Hormaza like this.
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice