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

Advance Ballast R-2S40-1-TP with Light Sockets -- lot of 6
$50.0
Advance Ballast R-2S40-1-TP with Light Sockets -- lot of 6 pictureADVANCE LC-14-20-C-TP LC1420CTP 1-F20T12 120V 60HZ 360MA PREHEAT BALLAST
$10.0
ADVANCE LC-14-20-C-TP LC1420CTP 1-F20T12 120V 60HZ 360MA PREHEAT BALLAST picturetkt8 32wx2 Advance Electronic Residential Ballast
$7.5
tkt8 32wx2 Advance Electronic Residential Ballast picturePhilips Advance SmartMate ICF-2S26-H1-LD Electronic Ballast
$18.0
Philips Advance SmartMate ICF-2S26-H1-LD Electronic Ballast pictureAMERICAN GREENPOWER B1-120-4 FOR INDUCTION LAMPS-BALLAST ONLY
$74.99
AMERICAN GREENPOWER B1-120-4 FOR INDUCTION LAMPS-BALLAST ONLY picture






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