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

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

Bug Reports Post about errors or bugs encountered.

ArrayList

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-17-2010, 10:39 AM
Cableguy's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: N 41º11'30.30" W 8º39'46.60"
Posts: 2,344
Awards Showcase
Forum Contributer 
Total Awards: 1
Default ArrayList

ArrayList("xpto").Sort(cCaseUnsensitive) is not recognized as a valid option!
__________________
Paulo Gomes - Porto, Portugal - Living/Working in France
Mobile Device: Samsung Galaxy S, Android 2.3.4 CUstom ROM
Laptop: Toshiba NB100-130 (running on Win7Ultimate)

My Posts helped you? Consider Buying me a Porto Glass!
Reply With Quote
  #2 (permalink)  
Old 04-17-2010, 10:51 AM
klaus's Avatar
Basic4ppc Expert
 
Join Date: Oct 2007
Location: Fully, Switzerland
Posts: 4,463
Awards Showcase
Forum Contributer Beta Tester Competition Winner 
Total Awards: 3
Default

Hi Paulo,

This one works: ArrayList("xpto").Sort(cCaseInsensitive) !

Best regards.
__________________
Klaus
Switzerland

Beginner's Guide / User's Guide
Reply With Quote
  #3 (permalink)  
Old 04-17-2010, 11:27 AM
Cableguy's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: N 41º11'30.30" W 8º39'46.60"
Posts: 2,344
Awards Showcase
Forum Contributer 
Total Awards: 1
Default

Thanks Klaus, then it's just a minor error on the help-file...

Quote:
Sorts the ArrayList.
Syntax: Sort (Compare Constant)
Compare Constant could be:
cNumbers - All values are numbers (9 will be sorted before 10)
cCaseSensitive - Sorts strings.
cCaseUnsensitive - Sorts string.
Example:
Sub App_Start
Form1.Show
ArrayList1.Add("apple")
ArrayList1.Add("A")
ArrayList1.Add("cat")
ArrayList1.Add("bee")
ArrayList1.Sort(cCaseSensitive)
For i = 0 to ArrayList1.Count-1
ListBox1.Add(ArrayList1.Item(i))
Next
End Sub
This example fills a ListBox with the items from the sorted ArrayList.
__________________
Paulo Gomes - Porto, Portugal - Living/Working in France
Mobile Device: Samsung Galaxy S, Android 2.3.4 CUstom ROM
Laptop: Toshiba NB100-130 (running on Win7Ultimate)

My Posts helped you? Consider Buying me a Porto Glass!
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
arraylist nick2210 Questions (Windows Mobile) 5 03-13-2010 06:30 PM
ArrayList how do you use it??? apstrojny2 Questions (Windows Mobile) 4 12-25-2009 08:20 AM
Sort an arraylist ExcludeReality Questions (Windows Mobile) 2 12-08-2009 03:24 PM
ArrayList Bobbes German Forum 2 02-25-2008 08:36 PM
Arraylist tvrman Questions (Windows Mobile) 7 07-01-2007 10:42 AM


All times are GMT. The time now is 03:53 PM.


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