For Each … FoxObject

Here’s a tip taken from Tamar’s session:

Prior to VFP 9, enumerating through a collection object rendered COM objects which were…problematic.  In VFP9, Microsoft apparently introduced a FOXOBJECT keyword which will not make it a COM object, but rather a native VFP object.  This speeds things up tremendously, improves memory and stability, and reduces overhead.  I wasn’t aware of this, but a very nice tip to pick up.

(Tamar mentions that if you subscribe to FoxRockX, which you all should do, you would have known about this months ago.)






Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.