Asp > Code Snippets
This shows how to use the Oct() and Hex() functions to convert
This shows how to use the Oct() and Hex() functions to convert an integer to its equivalent octal or hexadecimal value <% Dim intNumber1 , intNumber2 'our two numbers intNumber1 = 22 intNumber2 = 65 'convert them both Response.Write "The octal of " & intNumber1 & " is " & Oct(intNumber1) & "
" Response.Write "The octal of " & intNumber2 & " is " & Oct(intNumber2) & "
" Response.Write "The hexadecimal of " & intNumber1 & " is " & Hex(intNumber1) & "
" Response.Write "The hexadecimal of " & intNumber2 & " is " & Hex(intNumber2) & "
" %>
Asp Codes
ActiveX
ADO
Array
Code Snippets
Components
Data Access
Date Time
Files
Graphics
HTML Formatting
Mathematics
Miscellaneous
Sessions
SQL
Strings
Techniques
XML