Global Variables - How to list

 

I am trying to list all Global Variables currently in an EA that are not being used, so they can be deleted using the GlobalVariableDel function.


I am aware of the Global Variables screen available from the Tools menu F3, but I need to do this from within my program in realtime.


How can I do this?


Many thanks.

Mike M