Re: Userdefined datatypes

new topic     » goto parent     » topic index » view thread      » older message » newer message
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 
new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu