Static vars in Pascal

While there are no static data members but there are static methods. The workaround for the former is to use a "typed constant" which is the Pascal equivalent of a C static and is declared thus:

const
  MyStaticInt : integer = 12345 ;

It cannot be declared as part of a class but it can be local to a proc/fn/method and will retain it's value between calls in true static fashion.