Re: Userdefined datatypes
- Posted by DerekParnell (admin) Mar 06, 2015
- 1538 views
ZNorQ said...
I've created an own data-type called "byte";
It's probably just a style thing, but the way I code these is more along the lines of ...
type byte( object nByte ) if not integer( nByte ) then return 0 end if if nByte < 0 then return 0 end if if nByte > 255 then return 0 end if return 1 end type