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

2 (edited by vovka3003 2020-08-21 05:58:08)

Re: How to Use Custom Types

The program uses the fastscript script engine.

...- No typedeclarations (records, classes) in the  script; no records, no pointers, no sets(but you can use 'IN' operator - "a in ['a'..'c','d']"), no shortstrings, no GOTO statement...

3 (edited by rbknathan 2020-08-21 10:59:07)

Re: How to Use Custom Types

Oh... Its good to know, I thought all pascal things are supported by referring below link

Introdunction to script - http://myvisualdatabase.com/forum/viewtopic.php?id=2277

Thank you vovka3003.