Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Browse issue
Message
From
11/01/2004 19:56:09
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
11/01/2004 18:46:51
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00865787
Message ID:
00865885
Views:
17
>Hi Lisa,
>
>You're right, the report is pointing to another cursor. How can I force it to pointing the proper cursor? TIA

The safest way to avoid confusion is to eliminate data from the report's dataenvironment alltogether. In this case, whatever table or cursor is SELECTed when you run the report will be used.
* The following will prepare a cursor, and change the work area to the new cursor automatically:
select * from Client;
  order by ClientName;
  into cursor TempReport
* The following report will use cursor TempReport, provided
* it has nothing in the dataenvironment,
* and provided you don't insert other commands that SELECT a different
* work area:
report form ClientList to printer prompt
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Reply
Map
View

Click here to load this message in the networking platform