>Hi all,
>
>I have a routine where I read a table structure using AFIELDS()and copy this structure to a cursor. Doing it from the command window works fine, which allows me to preview my report; but as soons as I run the form to call the report, the fields on the cursor get truncated to 10 characters and the report won't work, what's going on? any suggestions?
>
>Thanks,
>
>Gil
When you are running this at Runtime, are you getting your AFIELDS() data from a different table than your design time one? Maybe the runtime table structure is different.
Also, rather that using AFIELDS, you could
SELECT * FROM tablename INTO CURSOR cursorname NOFILTER
to get a copy of your original table for reporting.