DroidScript wiki

(was AndroidScript) unofficial documentation by the community

User Tools

Site Tools


tips_tricks:callback_as_string

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Last revision Both sides next revision
tips_tricks:callback_as_string [2015/11/26 07:54]
stevegarman
tips_tricks:callback_as_string [2015/11/26 07:54]
stevegarman
Line 2: Line 2:
  
 <code JavaScript>​ <code JavaScript>​
-var i=1 +var i=7; 
-var methodname = "​txt"​ + i + "​_OnTouch"​+var methodname = "​txt"​+i+"​_OnTouch"​;
 btn.setOnTouch(eval(methodname));​ btn.setOnTouch(eval(methodname));​
 </​code>​ </​code>​
tips_tricks/callback_as_string.txt · Last modified: 2015/11/26 07:57 by stevegarman