Display the Type of a variable whose Type you don't know

When ‘playing’ with the mAirList classes and so forth, sometimes you get a variable but you can’t work out what Type that variable is.

I found some sample code on (where else?!!) Delphi Basics which ‘shows’ you the actual type of a variable, then amended it so that it will run in mAirList scripting: the resulting ShowVarType.mls script is attached.

So next time you can’t work out what Type a variable is, open ShowVarType.mls in your editor and change the one line where the ‘mystery’ variable is specified, then save and run the script.

mAirList will display the actual variable type in the system log. No thanks necessary: thank the boffin behind Delphi Basics!

Enjoy!

BFN
CAD


ShowVarType.mls (1.78 KB)