BlackBerry Forums Support Community               

Closed Thread
LinkBack Thread Tools
Old 03-30-2009, 10:42 AM   #1 (permalink)
Thumbs Must Hurt
Join Date: Jan 2009
Model: 9530
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?

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

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

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 11:33 AM.
Old 03-30-2009, 12:12 PM   #3 (permalink)
Talking BlackBerry Encyclopedia
Join Date: Apr 2008
Location: Germany, BW
Model: -
Carrier: -
Posts: 310
Post Thanks: 0
Thanked 0 Times in 0 Posts

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)
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

Copyright 2004-2014
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.