BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 03-30-2009, 09:42 AM   #1 (permalink)
Thumbs Must Hurt
 
Join Date: Jan 2009
Model: 9530
PIN: N/A
Carrier: Telus
Posts: 107
Post Thanks: 0
Thanked 0 Times in 0 Posts
Question String.Split - ?

Please Login to Remove!

Hello Everyone

Is there a built in method to split a string based on a specific character?

Thanks
Offline  
Old 03-30-2009, 10:31 AM   #2 (permalink)
Thumbs Must Hurt
 
Join Date: Feb 2009
Model: 9000
PIN: N/A
Carrier: T-Mobile
Posts: 67
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

there's lots of functionality hidden away in the StringUtilities object class:

Code:
String[] stringTokens = StringUtilities.stringToKeywords("some string of text");
but i don't think you can specify a delimiter. [edit] < scratch that, there's lots of functionality in the api to do just that. [/edit]

Last edited by hippocamp software : 03-30-2009 at 10:33 AM.
Offline  
Old 03-30-2009, 11:12 AM   #3 (permalink)
Talking BlackBerry Encyclopedia
 
Join Date: Apr 2008
Location: Germany, BW
Model: -
PIN: N/A
Carrier: -
Posts: 310
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

How To - Implement a string splitter based on a given string delimiter
__________________
Blessed is the end user who expects nothing, for he/she will not be disappointed. (Franklin's Rule)
Offline  




Copyright 2004-2016 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.