B4J Question callsubdelayed(Me,nameofsub) IS NOT FUNCTIONED

petr4ppc

Well-Known 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
 

petr4ppc

Well-Known 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
 
Upvote 0

petr4ppc

Well-Known 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
 
Upvote 0

petr4ppc

Well-Known 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
 
Upvote 0
Top