Click to See Complete Forum and Search --> : how can I get the difference between 2 chars


byliang
06-17-2003, 04:30 PM
Hi,
I wanna get the difference between 2 chars using Javascrip.
say, i hope get 2 using some express like :
'c' - 'a'
my purpose is:
if the char is 'a', i use aArray[0]
if the char is 'b', i user aArray[1]
....
pls help me the syntax
thanks

byliang
06-19-2003, 11:01 AM
thanks alot
it works