Unicode Controls & Classes for VB6 - Version 4

clsCommonWrapper.ClipByte Function

Clips a value to a byte; if i is > 255 then i = 255 else if i is < 0 then i = 0

Syntax
Public Function ClipByte (ByRef i As Integer) As Integer
Parameters
Parameter Description
ByRef i As Integer Integer value to clip
Remarks