[fpc-pascal] Can I define a custom "simple" type for my applications?

Mattias Gaertner nc-gaertnma at netcologne.de
Mon Apr 6 19:27:23 CEST 2009


On Mon, 6 Apr 2009 19:21:50 +0200
Graeme Geldenhuys <graemeg.lists at gmail.com> wrote:

> Hi,
> 
> I need a "new" boolean type in my applications that support three
> values. True, False and Null.  Null value means undefined and has
> various uses and gets handled differently to True or False.  Is this
> possible in Free Pascal?

TGraemeBoolean = (gbNull, gbTrue, gbFalse);

Mattias



More information about the fpc-pascal mailing list