>I am resetting the database for each cursor in a report's dataenvironment.
>
>SETALL doesn't work in a report(as follows):
>this.SetAll("Database",gcAppPath+"\database\library.dbc","Cursor")
>
>Would FOR EACH work? What would be the syntax? I took a stab at:
>
>FOR EACH CURSOR IN DATAENVIRONMENT
> cursor.database = gcAppPath+"\database\library.dbc"
>ENDFOR
>
>but this doesn't work. Any ideas?
It seems to me that both ways will not work for reports, you should use AMEMBERS() to get all DE members and loop through the resulting array.
Edward Pikman
Independent Consultant