DroidScript wiki

(was AndroidScript) unofficial documentation by the community

User Tools

Site Tools


sample_code:search

Differences

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

Link to this comparison view

Next revision
Previous revision
sample_code:search [2018/09/12 20:15]
77.125.22.166 created
sample_code:search [2018/09/13 06:50]
37.142.167.139
Line 1: Line 1:
 +=====Search=====
 +//(Created by: Omer Meshy)//
 +
 +<code javascript>​
 btn = []; btn = [];
 word = 0; word = 0;
Line 7: Line 11:
     lay = app.CreateLayout( "​linear",​ "​top,​FillXY"​ );      lay = app.CreateLayout( "​linear",​ "​top,​FillXY"​ );
     edt = app.CreateTextEdit( "",​ 0.7 );     edt = app.CreateTextEdit( "",​ 0.7 );
-    edt.SetOnEnter( ​surch );+    edt.SetOnEnter( ​search ​);
     lay.AddChild( edt );     lay.AddChild( edt );
     ​     ​
Line 20: Line 24:
 } }
  
-function ​surch ()+function ​search ​()
 { {
     for( var s = 0 ; s <= 150 ; s++ ){     for( var s = 0 ; s <= 150 ; s++ ){
Line 31: Line 35:
     }     }
 } }
 +</​code>​
sample_code/search.txt ยท Last modified: 2018/09/13 06:50 by 37.142.167.139