If you are using Internet Explorer, please remove blackberry.com from your compatibility view settings.

Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Developer
Schwoebel
Posts: 82
Registered: ‎12-16-2010
My Device: BlackBerry Storm 9950
Accepted Solution

Issue with String to Long in Blackberry JDE and Eclipse w/ Blackberry plugin

[ Edited ]

I am trying to convery a string to a long for use in a persistent store.  I am following the Blackberry doc on the process.  When I type the string and right click on it "Convert String to Long" is greyed out in both Eclipse and the BB JDE.

 

 

 applepie
  
  String key = new string ("applepie");
  
  String key = "applepie";


 

 

those are the ways I´m trying it in both environments. 

 

What am I doing wrong?

 

It has to be something simple. 

 

I am probably not seeing the forest because of the trees.

Please use plain text.
Developer
Aman_vivek
Posts: 216
Registered: ‎02-18-2010
My Device: 9350,8520
My Carrier: no

Re: Issue with String to Long in Blackberry JDE and Eclipse w/ Blackberry plugin

first select the string and then right click on it and covert string to long

Please use plain text.
Developer
vivart
Posts: 147
Registered: ‎08-27-2010
My Device: 9800
My Carrier: airtel

Re: Issue with String to Long in Blackberry JDE and Eclipse w/ Blackberry plugin

you have to select that string.

first select that string using mouse(like when we do for cut or copy)

 

after that right click on that string.

Please use plain text.
Developer
Schwoebel
Posts: 82
Registered: ‎12-16-2010
My Device: BlackBerry Storm 9950

Re: Issue with String to Long in Blackberry JDE and Eclipse w/ Blackberry plugin

[ Edited ]

highlight? 

 

 

oh man

 

it´s been a long morning.

 

actually, I guess it's been a string morning.  NOW it can be a long morning.

 

(I'll be here all night folks)

 

thanks folks.

Please use plain text.
Administrator
MSohm
Posts: 14,362
Registered: ‎07-09-2008
My Device: BlackBerry Z30, BlackBerry PlayBook
My Carrier: Bell

Re: Issue with String to Long in Blackberry JDE and Eclipse w/ Blackberry plugin

 


Schwoebel wrote:

 

it´s been a long morning.

 

actually, I guess it's been a string morning.  NOW it can be a long morning.

 


:smileyvery-happy: Nice one!

 

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
Please use plain text.