Joined: Tue Mar 27, 2007 10:55 pm Posts: 2272 Location: Earth Has thanked: 39 time Have thanks: 61 time
Following code convert between the character and its ANSI code .
Code:
<% Dim intCh1 , intCh2 intCh1 ="87" intCh2="65" Response.Write "The character for code <b>87</b> is "& Chr(intCh1 ) Response.Write "The character for code <b>65</b> is "& Chr(intCh2) %>
Code:
<% Dim strValue1 , strValue2 strValue1="b" strValue2="B" Response.Write "The ansi value of <b>b</b> is "& Asc(strValue1)&"<br>" Response.Write "The ansi value of <b>B</b> is "& Asc(strValue2)&"<br>" %>
_________________ Currenlty programming with : java , html , php , and javascript . (OCJP-6 certified )