User Tools

Site Tools


sample_code:search

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
sample_code:search [2018/09/12 20:17]
77.125.22.166
sample_code:search [2018/09/13 14:50] (current)
Line 1: Line 1:
-=====Example===== +=====Search===== 
-//(Example taken from the DroidScript sample section)//+//(Created by: Omer Meshy)//
  
 <code javascript> <code javascript>
Line 11: 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 24: Line 24:
 } }
  
-function surch ()+function search ()
 { {
     for( var s = 0 ; s <= 150 ; s++ ){     for( var s = 0 ; s <= 150 ; s++ ){
sample_code/search.1536783444.txt.gz · Last modified: 2018/09/13 04:17 (external edit)