petr4ppc Well-Known Member Licensed User Longtime User Jan 27, 2015 #1 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
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 Longtime User Jan 27, 2015 #2 Apparently nothing. If I remember correctly, the procedure name is case sensitive: perhaps this may be the problem in the real case. Upvote 0
Apparently nothing. If I remember correctly, the procedure name is case sensitive: perhaps this may be the problem in the real case.
petr4ppc Well-Known Member Licensed User Longtime User Jan 27, 2015 #3 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
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
Erel B4X founder Staff member Licensed User Longtime User Jan 27, 2015 #4 It is not case sensitive. Are you running in Release (obfuscated) mode? Upvote 0
petr4ppc Well-Known Member Licensed User Longtime User Jan 27, 2015 #5 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
Erel ,thank you very much YES IN OBFUSCATED MODE, it is not functioned RELEASE = everything is OK Thank you very much, Best regards p4ppc
Erel B4X founder Staff member Licensed User Longtime User Jan 27, 2015 #6 See the pitfalls section: https://www.b4x.com/android/forum/threads/android-code-obfuscation.13773/#content Upvote 0
See the pitfalls section: https://www.b4x.com/android/forum/threads/android-code-obfuscation.13773/#content
petr4ppc Well-Known Member Licensed User Longtime User Jan 28, 2015 #7 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
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