CByte Function

Converts a string or a numeric expression to the Byte type.

தொடரமைப்பு:


Cbyte( expression As Variant) As Byte

திரும்பும் மதிப்பு:

Byte

அளவுருக்கள்:

Expression: Any string or a numeric expression that can be evaluated to a number. Decimal values are rounded to the nearest tenth. Valid values range from 0 to 256.

பிழையான குறியீடுகள்:

5 செல்லாத செயல்முறை அழைப்பு

6 நிரம்பிவழிதல்

எடுத்துக்காட்டு:


  Sub CByte_example
      Print CByte( expression := "17"/2 + 7.44), CByte(EMPTY), CByte(PI)
      ' Above expressions are computed as 16, 0 and 3
  End Sub

Please support us!