[fpc-pascal] Name of a var

Rainer Stratmann RainerStratmann at t-online.de
Mon Nov 21 13:56:59 CET 2011


Is it possible to get information of the name of a var?

For Example.

var
 counter : longint;
 varname : shortstring;

varname := nameofvar( counter );

The content of varname then is 'counter'.



More information about the fpc-pascal mailing list