Static Variable in Delphi...
One time I was discussing with a .Net programmer about static variables. Then I tried to declared a static variable in Delphi. But I could not. Because there no keyword 'Static' in Delphi. So I searched found 'Typed Constant' which act as static variable in Delphi. By default Delphi doesn't allow static variables, it only allows static methods, functions and properties. But we can use typed constant to declare a static variable in Delphi. That will work as like static variable in C# that keep their value between routine calls. But this facility was available in Delphi 16 bit version i.e in Delphi 1 which is disappeared in Delphi 32 version. But for backward compatibility still Delphi has an option 'Assignable Typed Constant' option in compiler tab of project option. Project Menu -> Option -> Compiler Tab -> Assignable Typed Constant You need to check this option for use such facility else you will get following error. "[Error] Unit1.pas(30...