Thanks a lot! Instead of the AFIELDS() function I'm using now Copy Structure Extended and loop through the different fields, because I like tables more than arrays.
But the class is working now properly. It creates an FRX file automatically based on the selected cursor, and it is possible to customize the report (field order, field selection, font, page layout etc) programatically (for the developer) or with an interface (for the user) to a certain extend.
If someone is interested in the sample class I can email it to you.
>If the other suggestions don't work, you can always use this little UDF I just wrote for you. It's quick and dirty, so I don't know how efficient, but it may give you an idea.
>
>Michelle
>
Christian Isberner
Software Consultant