Log in

View Full Version : Making new types



Killerdou
07-20-2007, 03:22 PM
how would i make a new type that consists of different characters but not all and only one(so not an array like strings) so for example it could have the following values : T(rue) F(alse) M(aybe)

SKy Scripter
07-20-2007, 08:59 PM
Like....


type
TBoolean = (True, False, Maybe);

var
TypeBoolean : TBoolean;

begin
TypeBoolean := Maybe;

end.