You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Erik Price <ep...@ptc.com> on 2003/07/22 22:41:40 UTC
Re: [OT]Java equivalent to ASP function
Yan, Charlene wrote:
> All,
>
> I need to rewrite some ASP codes in Java. What are the Java equivalent to Asc(String) and Hex(Number) in VB? I appreciate any insight from you!
I don't know VB. I assume Hex(Number) transforms the number to
hexadecimal. You can get the hexadecimal representation of a binary
number like so:
int x = 4;
String hexOf4 = Integer.toHexString(x); // becomes "0x4"
What does Asc(String) do?
Erik
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org