About this Article:
Do you want to fill an array with a list of all the non-visual objects created using CreateObject() during runtime, so you can then scan through the list to get all the objects' properties and their values using AMEMBERS()? The only command you might be able to find is List Objects, but it can't output to an array. There's no function to accomplish this in Visual FoxPro. This article describes a function called AObjects.PRG modeled after the various A functions in VFP, which accepts an array as a parameter and fills the array with information about the objects in memory.
Tamar E. Granor, Ph.D., owns Tomorrow's Solutions, a company that works with other developers through subcontracting and consulting. Tamar is a Microsoft Certified Professional, a Microsoft Support Most Valuable Professional, and a technical editor of FoxPro Advisor. She is co-author of What's New in Nine, Microsoft Office Automation with Visual FoxPro, Taming Visual FoxPro's SQL, and a number of other books. Tamar speaks about Visual FoxPro at conferences and user groups in North America and Europe. tamar@tomorrowssolutionsllc.com