Re: Userdefined datatypes

new topic     » goto parent     » topic index » view thread      » older message » newer message

Ah forget it! Stupid me, I assumed short-circuit applied to the...

return ( integer( nByte ) and nByte >= 0 and nByte <= 255 )

... however I tried modifying the code to the following;

type byte( object nByte ) 
if sequence( nByte ) then return false 
else return ( integer( nByte ) and nByte >= 0 and nByte <= 255 ) 
end if 
end type 

New motto; THINK, before you post... Oo

Kenneth

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu