Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SETALL doesn't work in a report what about FOR EACH
Message
From
30/12/1998 13:51:08
 
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00171616
Message ID:
00171628
Views:
30
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform