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  
Closed Thread


Thread Tools

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 On
Pingbacks are On
Refbacks are On

Bullhead Safety Sun Eyewear Wahoo Crystal Clear Frame Blue Mirror Ballistic Rate
$17.5
Bullhead Safety Sun Eyewear Wahoo Crystal Clear Frame Blue Mirror Ballistic Rate pictureBullhead Safety Sun Eyewear Ballistic Rated Polarized Lens Crystal Brown Frame
$38.95
Bullhead Safety Sun Eyewear Ballistic Rated Polarized Lens Crystal Brown Frame   pictureCrystal Desk Reference System, 10 Pockets
$93.16
Crystal Desk Reference System, 10 Pockets picture1PCS NEW X360Run Glitcher with 96MHZ Crystal Oscillator Build For Slim XBOX360.
$3.39
1PCS NEW X360Run Glitcher with 96MHZ Crystal Oscillator Build For Slim XBOX360. picture100 Crystal Clear Bags For DVD, BLU-RAY, WII, XBOX, PS2, PS3 Video Game Sleeves
$8.99
100 Crystal Clear Bags For DVD, BLU-RAY, WII, XBOX, PS2, PS3  Video Game Sleeves picture






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