>>I would rather pass back a keyed collection of record objects, key being the table/cursor's primary key
>
>Thierry: would this then be a custom object passed back that contains an array (as a property of the object) and each of the rows in the array is a record object (created with SCATTER NAME to an object)?
procedure form.unload
o = create('collection')
local oRec as Empty
select ...
scan
scatter name oRec memo
o.add(m.oRec, transform(primaryKey))
endscan
return m.o
Thierry Nivelet
FoxinCloud
Give your VFP application a second life, web-based, in YOUR cloud
http://foxincloud.com/Never explain, never complain (Queen Elizabeth II)