B4J Question callsubdelayed(Me,nameofsub) IS NOT FUNCTIONED

petr4ppc

Active Member
Licensed User
Dear friends,

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

If I use
B4X:
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
 

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.
 

petr4ppc

Active Member
Licensed User
LucaMs, thank you,

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

As
B4X:
dim nameofsub as string
nameofsub="doit"
callsubdelayed(Me,nameofsub)
Thank you very much
p4ppc
 

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
 

petr4ppc

Active Member
Licensed User
AMAZING,

thank you very much, Erel!!


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

B4X:
   subName = "Test_3"'Works
   CallSub("Main", subName) 'Works
Best regards,
p4ppc
 
Top