VBScript Hex Function
Complete VBScript Reference
The Hex function returns a string that represents the hexadecimal value of a
specified number.
Note: If number is not a whole number, it is rounded to the
nearest whole number before being evaluated.
Syntax
| Parameter |
Description |
| number |
Required. Any valid expression If number is:
- Null - then the Hex function returns Null.
- Empty - then the Hex function returns zero (0).
- Any other number - then the Hex function returns up to eight
hexadecimal characters.
|
Example
Example
<script type="text/vbscript">
document.write(Hex(3) & "<br />")
document.write(Hex(5) & "<br />")
document.write(Hex(9) & "<br />")
document.write(Hex(10) & "<br />")
document.write(Hex(11) & "<br />")
document.write(Hex(12) & "<br />")
document.write(Hex(400) & "<br />")
document.write(Hex(459) & "<br />")
document.write(Hex(460) & "<br />")
</script>
|
The output of the code above will be:
Try it yourself »
|
Complete VBScript Reference
Stylus Studio® 2010 XML Enterprise Suite raises the bar for productivity in XML development tools.
Millions of XML developers and data integration specialists turn to Stylus Studio's comprehensive and intuitive
XML toolset to tackle today's advanced XML data transformation and aggregation challenges.
|
- XML Pipeline Editor, Debugger and Code Generator
- DataDirect XML Converters
- XQuery Mapper, Editor, Debugger, and Profiler
- XSLT Mapper, Editor, Debugger, Designer, and Profiler
- Java and C# for .Net Code Generation
- XML Schema Designer With Documentation Generator
- XML Editor With Full XPath Integration
Download a free trial now
|
|