Userdefined datatypes

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

Hi,

I've created an own data-type called "byte";

type byte( object nByte ) 
 return ( integer( nByte ) and nByte >= 0 and nByte <= 255 ) 
end type 

With this, I was hoping that the following code would "survive" a data-type check;

sequence myType = "somesequenceiwanttocheck" 
if byte( myType ) then <statements> else <statements> end if 

However, it doesn't... Any thoughts?

Kenneth aka ZNorQ

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

Search



Quick Links

User menu

Not signed in.

Misc Menu