User Tools

Site Tools


built_in:list_folder

Differences

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

Link to this comparison view

Next revision
Previous revision
Next revision Both sides next revision
built_in:list_folder [2015/03/04 18:05]
octazid created
built_in:list_folder [2015/03/07 09:17]
octazid [Example - limited]
Line 11: Line 11:
 Note: You can use the JavaScript 'split' function to convert the list to a JavaScript array if required. Note: You can use the JavaScript 'split' function to convert the list to a JavaScript array if required.
  
-<code> list = app.ListFolder( path, filter );</code>+<code> list = app.ListFolder( path, filter, limit );</code>
  
 ---- ----
Line 35: Line 35:
   list = app.ListFolder( "/sdcard", ".mp3" );   list = app.ListFolder( "/sdcard", ".mp3" );
   app.ShowPopup( list );   app.ShowPopup( list );
 +}
 +
 +</code>
 +
 +====Example - Limited====
 +
 +<code javascript>
 +
 +function OnStart()
 +{
 +  //Find first ten mp4 files on internal sdcard.      
 +  mp4List = app.ListFolder( "/sdcard", ".mp4", 10 ); 
 +  app.ShowPopup( mp4List );
 } }
  
 </code> </code>
built_in/list_folder.txt · Last modified: 2016/05/08 15:36 (external edit)