Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Questions (Windows Mobile)
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Questions (Windows Mobile) Post any question regarding Basic4ppc.

ArrayList how do you use it???

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-24-2009, 04:20 PM
Junior Member
 
Join Date: Apr 2009
Posts: 12
Default ArrayList how do you use it???

I guess I'm at a loss of how to initialize it or use ArrayList... Is it possible to get a copy of a .sbp program that uses it to read files in a directory using an ArrayList?

From the Filesearch or Directory search topic...

FileSearch (alFiles, "\My Documents", "*.*") Got No Clue how to define alFiles or use it?

Thanks Andy
Reply With Quote
  #2 (permalink)  
Old 12-24-2009, 04:48 PM
Basic4ppc Veteran
 
Join Date: May 2008
Location: Newcastle Upon Tyne - England
Posts: 271
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Hello Andy,

You add the ArrayList just like it was a button in the IDE. Its in the 'Controls/Collections' submenu of the IDE. I've attached a very simple project to show how its used.
Attached Files
File Type: sbp ArrayListExample.sbp (822 Bytes, 31 views)
Reply With Quote
  #3 (permalink)  
Old 12-24-2009, 06:18 PM
Junior Member
 
Join Date: Apr 2009
Posts: 12
Default Thanks a bunch

Hi ZenerDiode,
Thanks a bunch... I really appreciate your example... I see how you added the ArrayList in the form designer as a control... It just has to be done that way even though the ArrayList maybe something you manage in the program and has nothing to do with the form, right?... Have a Happy Hoiliday and thanks again...
Andy
Reply With Quote
  #4 (permalink)  
Old 12-24-2009, 09:23 PM
Basic4ppc Veteran
 
Join Date: May 2008
Location: Newcastle Upon Tyne - England
Posts: 271
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Quote:
Originally Posted by apstrojny2 View Post
It just has to be done that way even though the ArrayList maybe something you manage in the program and has nothing to do with the form, right?
Yes, you've got it. There are a few controls like that; whereby they are added to the form in the IDE but have no 'visible' properties. A timer, open/save dialog, any of the collections and imagelist are others I can think of right now.

Thank you for the holiday wishes - respectfully returned.
Reply With Quote
  #5 (permalink)  
Old 12-25-2009, 08:20 AM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 6,072
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
Default

You can also dynamically add them at runtime with AddObject but you don't get the benefit of AutoComplete for them at design time as the name and type are not known then.
__________________
Sorry, but I don't answer questions by PM or email.
Please post your queries in the forum.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
I need help on ArrayList and AddArrayList claudio Questions (Windows Mobile) 7 05-30-2009 11:11 AM
Array and Arraylist junglejet Questions (Windows Mobile) 2 02-09-2009 06:52 PM
ArrayList Bobbes German Forum 2 02-25-2008 08:36 PM
Arraylist tvrman Questions (Windows Mobile) 7 07-01-2007 10:42 AM
listbox = arraylist ? sloopa Questions (Windows Mobile) 1 05-07-2007 12:38 PM


All times are GMT. The time now is 10:37 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0