blackberry - String text to long value -


well, thats it! need convert string text (like"hrd$457"), long value. blackberry ide has button it, need code. please note string alpha numeric.

thx!

note: sorry if question not clear. ide button im talkin converts entire string in long value makes string unique number. blackberry documentation says:

"to create unique long key, in blackberry® integrated development environment, type string value. com.rim.samples.docs.userinfo right-click string , click convert ‘com.rim.samples.docs.userinfo’ long."

so, need same code.

i appreciate buddies, , trying help.

if looking a number constant string can following.

string str = "asdfasdf345asdfasdf"; int asint = str.hashcode(); long aslong = (long) asint; 

Comments

Popular posts from this blog

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -