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

MOS 325572-01 Commodore 1541 40-PIN Gate Array (x1)
$7.0
MOS 325572-01 Commodore 1541 40-PIN Gate Array (x1) pictureMOS 906114-01 Commodore 64 PLA 28-Pin PDIP Used-Pull
$25.0
MOS 906114-01 Commodore 64 PLA 28-Pin PDIP Used-Pull  pictureReconditioned Windsor Commodore 20 Carpet Extractor
$3025.0
Reconditioned Windsor Commodore 20 Carpet Extractor pictureJelenko commodore VPF porcelain furnace
$800.0
Jelenko commodore VPF porcelain furnace pictureNEW HOLDEN RACING TEAM FLAG BANNER BLACK 3X5FT 150X90CM MONARO COMMODORE HSV UTE
$7.99
NEW HOLDEN RACING TEAM FLAG BANNER BLACK 3X5FT 150X90CM MONARO COMMODORE HSV UTE picture






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