Hi all
I am looking for a function similar to:
<% response.write(Hex(460)) %>
converts 469 into its HEX of 1CC
but to do the same with binary
i.e. 5 would give 101
looked through the W3C VBScript lists but nothing
I can do it in javascript:
<script language="javascript" type="text/javascript">
function decimal(dec)
{
this.dec=dec;
this.toBinary=function() { return this.dec.toString(2); }
}
</script>
then document.write(new decimal(5).toBinary());
but need to be able to do it with VBscript to use with my ASP
thanks for any help
Matt Houldsworth
Digitalquill