Latest web development tutorials

VBScript CByte function

VBScript Reference Complete VBScript Reference

CByte function to the expression into a byte (Byte) type.

Expression must be a number between 0 and 255.

grammar

CByte(expression)

参数 描述
expression 必需。任何有效的表达式。

Examples

Examples

<script type="text/vbscript">

document.write(CByte(0) & "<br />")
document.write(CByte(56.8) & "<br />")
document.write(CByte(123.2) & "<br />")
document.write(CByte(255) & "<br />")

</script>

Examples of the above output:

0
57
123
255

try it"

VBScript Reference Complete VBScript Reference