Topic: How to Use Custom Types
I am new to pascal but i am trying to learn from online resources. I am trying to use custom types.
But they are showing error in MVD. Guide me on this.
type
TDay = (Mon=1, Tue, Wed, Thu, Fri, Sat, Sun); // Enumeration values
type
atom = record
electrons: integer;
neutrons: integer;
protons: integer;
end;
var
today : TDay;
x : atom;
References:
Enumeration - http://www.delphibasics.co.uk/Article.asp?Name=Sets
Record - http://www.delphibasics.co.uk/Article.asp?Name=Records