Click to See Complete Forum and Search --> : string convert to long How?


davidchew
May 5th, 2000, 07:04 PM
Please help me with the codes
to convert string values to long
The following command is wrong because
values from parameters are string, but
I need it to be converted to long.
How to do that ?

long fromcgi = getParameter("DATE");

kib63613
May 5th, 2000, 07:13 PM
You may use Long.parseLong(String s) or Long.valueOf(String s) to convert your string to a long
value.
good luck,
Alfred Wu