Groups | Blog | Home
all groups > inetserver asp components > november 2003 >

inetserver asp components : Problems with mid() function


Joeandtel
11/14/2003 1:37:02 PM
'When I create a single character string
var str = "A"
'convert to ascii
num = asc(str)
Response.Write num ' 65 shows up
'when I have a whole string
str = "hello"
str = mid(str, 1, 1) ' return 'h'
num = asc(str)
'I get an error:
Invalid procedure call or argument: 'asc'
Ray at <%=sLocation%
11/14/2003 4:42:03 PM
ANSWERED ELSEWHERE. PLEASE DON'T MULTIPOST.

Ray at work

[quoted text, click to view]

AddThis Social Bookmark Button