>What do you mean by 'no header to this' ? I've got it working now by just patching in some code to handle the SCATTER NAME... type objects exactly. The whole thing handles recursed objects as well.
>
>Thanks for the info.
>
>- A Hilton
Well, an object can be different things. In this example I receive an object (AMFGs) full of data objects (aMFG). I tried do use the scatter name to ways the second has the to atest commented out. Both examples created a shell and populated it from the current table and not from the object aMFG. The existing one over wrote my good object aMFG, the first make an array atest.
AMFGs = PS.FetchManufacturers(mfCookie)
For Each aMFG In AMFGs
scatter name amfg &&to atest
* lctest= aMFG.Text + " (" + aMFG.Code + ")"
lctest= aMFG.Text
lcCode = aMFG.Code
So the differences could be that if your are dealing with data in a usable VFP environment then Scatter will work, but if the data is not in a VFP container like an array, table/cursor I don't think that this works.
__Stephen