vbscript – CByte

FUNCTION:  CByte( )


Implemented in version 1.0

You can determine the expression subtype by using the function VarType( ).

CByte(Number)

The CByte function converts any number between 0 and 255 to the variant of subtypeByte.

Code:
<% anynumber=(9.876) %>
<% =CByte(anynumber) %>

Output:
10

Code:
<% anynumber=(255) %>
<% =CByte(anynumber) %>

Output:
255

Laisser un commentaire

Votre adresse de messagerie ne sera pas publiée. Les champs obligatoires sont indiqués avec *

Vous pouvez utiliser ces balises et attributs HTML : <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>