A Ahmadhashemi Member Dec 21, 2011 #1 I have a text file that include : ToastMessageShow(" hello" , true) and my program has a button. i want when i clicked on this button, my program read and execute the codes that are in text file. in other programing languages we use eval() function. Thanks! :sign0013: for my english
I have a text file that include : ToastMessageShow(" hello" , true) and my program has a button. i want when i clicked on this button, my program read and execute the codes that are in text file. in other programing languages we use eval() function. Thanks! :sign0013: for my english
Erel B4X founder Staff member Licensed User Longtime User Dec 21, 2011 #2 Eval function is only possible when running scripts. Basic4android code is compiled to the native byte code. It is not possible to compile code at runtime and include it in your project. You may want to try this library: http://www.b4x.com/forum/additional...24-expressionevaluator-library.html#post43860 Upvote 0
Eval function is only possible when running scripts. Basic4android code is compiled to the native byte code. It is not possible to compile code at runtime and include it in your project. You may want to try this library: http://www.b4x.com/forum/additional...24-expressionevaluator-library.html#post43860