B4J Question callsubdelayed(Me,nameofsub) IS NOT FUNCTIONED

Discussion in 'B4J Questions' started by petr4ppc, Jan 27, 2015.

  1. petr4ppc

    petr4ppc Active Member Licensed User

    Dear friends,

    please for help
    If I use
    Code:
    callsubdelayed(Me,"doit")
    everything is OK

    If I use
    Code:
    dim nameofsub as string
    nameofsub=
    "doit"
    callsubdelayed(Me,nameofsub)
    this is not functioned....

    please why? What I am doing wrong?
    Thank you very much
    p4ppc
     
  2. LucaMs

    LucaMs Expert Licensed User

    Apparently nothing.

    If I remember correctly, the procedure name is case sensitive: perhaps this may be the problem in the real case.
     
  3. petr4ppc

    petr4ppc Active Member Licensed User

    LucaMs, thank you,

    Exist please some other way, how to call SUB with neame in STRING variable?

    As
    Code:
    dim nameofsub as string
    nameofsub=
    "doit"
    callsubdelayed(Me,nameofsub)
    Thank you very much
    p4ppc
     
  4. Erel

    Erel Administrator Staff Member Licensed User

    It is not case sensitive.

    Are you running in Release (obfuscated) mode?
     
    LucaMs likes this.
  5. petr4ppc

    petr4ppc Active Member Licensed User

    Erel ,thank you very much

    YES IN OBFUSCATED MODE, it is not functioned
    RELEASE = everything is OK

    Thank you very much,
    Best regards

    p4ppc
     
  6. Erel

    Erel Administrator Staff Member Licensed User

  7. petr4ppc

    petr4ppc Active Member Licensed User

    AMAZING,

    thank you very much, Erel!!


    For all - Solution: Works in OBFUSCATED MODE because the name includes an underscore

    Code:
    subName = "Test_3"'Works
       CallSub("Main", subName) 'Works
    Best regards,
    p4ppc
     
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