Error while loading a String on a TextField

Hi, I have a TextField set for Numeric values, now when I do setString () and pass a number as String it gives an error,. It works perfectly on a emulator but on the real device it gives a exception. I dont know the stacktrace beause I dont know how to obtain it on the device. the only thing I know is that when I change the numeric to any it loads it well. But this is not an option for the final release of the app because I need it to be NUMERIC.

Any clue? I am testing it on a nokia 6131.

[506 byte] By [MelGohana] at [2007-11-27 2:12:26]
# 1
No one has any clue?
MelGohana at 2007-7-12 2:06:45 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 2
Better to use String.valueOf() functionality to convert the Numeric value to its corresponding String representation and then pass the obtained value tp Textfield's setString() functionality.Hope this alternative solves the issue.~Mohan
itsmohana at 2007-7-12 2:06:45 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 3
Also, Check for the constraint that you've set in the constructor while initializing TextField object. Use TextField.ANY.~Mohan
itsmohana at 2007-7-12 2:06:45 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 4

I cant use ANY because I requires the user to input only numbers. Of course if I set to ANY it will load with no problems but I cant set it to ANY when going to the final customer.

The number I want to load on the TextField is goten from a String on a recordStore so I dont have a numeric value like an integer.

This TextField is suposed to load the previous saved value and let the user to modify it value and save it. Its for storing a phone number with only numbers.

MelGohana at 2007-7-12 2:06:45 > top of Java-index,Java Mobility Forums,Java ME Technologies...