On Mon, 21 Nov 2011, Rainer Stratmann wrote:
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'.
There is no way in Pascal. Conceivably, you can make such a function that returns the name when debug info is included in the binary. Michael. _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal