>>Actually I have code to transfer grid to excel with all the setting that are set in comment of each column and the grid.
>>I would like to use the same code (as it contains collection which is absent in vfp6) to convert vfp6 grid to excel file.
>
>It shouldn't be hard to write VFP6 implementation of VFP9 collection class. You don't have to write complete implementation, only the part that is used in your export routine.
The Feltmans had one in their VFE since several versions ago - 6 I guess - and it was just a custom object with an array property. The trick was to have the .item() method accept a number as well as a string, the rest of the implementation was fairly easy.