×
VB 教程VB 用法VB 变量VB 程序VB 条件VB 循环VB 总结VB 实例VB 函数VB 关键字

VBScript CByte 函数


VBScript 函数VBScript 函数


CByte 函数把表达式转换为字节(Byte)类型。

表达式必须是介于 0 和 255 之间的数字。

语法

CByte(expression)

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

实例

实例

<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>

以上实例输出结果:

0
57
123
255

尝试一下 »

VBScript 函数VBScript 函数


分类导航

关注微信下载离线手册

bootwiki移动版 bootwiki
(群号:472910771)