>With the macro (&) in stead of the EVAL(), it works just fine..
>
>Thanks again...
While your method of copying an object of a SCATTER NAME variety will work with the &, I find it to be too slow. What I do is:
using the table that the scatter name object was created from, create an array of the structure using AFIELDS(), create a cursor from that array, APPEND a BLANK record, GATHER NAME from the original SCATTER NAME object to the new cursor, and then do a SCATTER NAME to a new object, effectively creating a copy. More steps, but much faster.
LOCAL aStruct[1]
SELECT table
SCATTER MEMO NAME oFirst
AFIELDS(aStruct)
CREATE CURSOR temp FROM ARRAY aStruct
APPEND BLANK
GATHER MEMO NAME oFirst
SCATTER MEMO NAME oSecond