BlackBerry Forums Support Community
              

Closed Thread
 
LinkBack Thread Tools
Old 02-14-2007, 02:03 AM   #1 (permalink)
New Member
 
Join Date: Jan 2007
Model: 8700G
Posts: 9
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default Newbie Formating problems

Please Login to Remove!

Hi Im having problems with the following code:

MessageFormat mf = new MessageFormat("{0,number,$#,###.##}"); // Error ocurrs here
Object[] objs = {new Double(i)};
return mf.format( objs ).toString();

I based my code on java.text.MessageFormat as the API documentation describes

help... somebody ?

thanks in advance

rudolf
Offline  
Old 02-14-2007, 08:19 PM   #2 (permalink)
Knows Where the Search Button Is
 
Join Date: Nov 2006
Model: 7250
Carrier: Carrier Has Arrived
Posts: 29
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

you may want to go to BlackBerry API to use

net.rim.device.api.i18n.MessageFormat

access blackberry api by going to your BlackBerry JDE.
------
Click Help menu
-> Click API Reference
OR
------
Just press (SHIFT + F1) shortcut
Offline  
Old 02-14-2007, 08:22 PM   #3 (permalink)
New Member
 
Join Date: Jan 2007
Model: 8700G
Posts: 9
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

thanks.

But actually I based my code on the JDE, BB API Reference... thats why im confused.
Offline  
Old 02-14-2007, 08:44 PM   #4 (permalink)
Knows Where the Search Button Is
 
Join Date: Nov 2006
Model: 7250
Carrier: Carrier Has Arrived
Posts: 29
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

i dont see a method prototype like the one you are using

try this method..
format(Object arguments, StringBuffer result, FieldPosition ignored)
Retrieves formatted string representation of argument list.


---------
by the way, i can compile your code okay..
try importing that library..

import net.rim.device.api.i18n.MessageFormat;

Last edited by newToThis : 02-14-2007 at 08:53 PM.
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

Mosier S-A00203 BORExSTROKE 3-1/4X2 SN 65223-0.01 - LOT of 2
$125.0
Mosier S-A00203 BORExSTROKE 3-1/4X2 SN 65223-0.01 - LOT of 2 picture50 to 3000 PF VACUUM VARIABLE CAPACITOR, ITT JENNINGS CVCD-3000-3S
$199.0
50 to 3000 PF VACUUM VARIABLE CAPACITOR, ITT JENNINGS CVCD-3000-3S pictureVacuum Hose Tube Fitting Quick Toggle Clamp NW25 KF25 - Lot of 2
$14.4
Vacuum Hose Tube Fitting Quick Toggle Clamp NW25 KF25 - Lot of 2 pictureVacuum Pump Fitting Stainless Steel Conical Reducer NW25 to NW40 - Lot of 3
$283.35
Vacuum Pump Fitting Stainless Steel Conical Reducer NW25 to NW40 - Lot of 3 picturePACE 6993-0196 Vacuum Cup Kit - Made In U.S.A - NEW
$35.0
PACE 6993-0196 Vacuum Cup Kit - Made In U.S.A - NEW picture






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