Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Cmd buttons invisible but active after report
Message
From
25/11/1997 11:45:24
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00061971
Message ID:
00062182
Views:
36
Well, the easiest way I can think of off-hand is--before setting up for the report do CREATE VIEW myView FROM ENVIRONMENT
and then SET VIEW TO myView after running the report. If your app is strictly utilitarian, that might be all you need. If it's an app you're writing for others, then you need something like the following (I'm assuming only one table is open and important--it's more complicated otherwise, so let me know if you want more info)...


***BEGIN EXAMPLE--untested code

LOCAL cAlias, nRecno, nOrder, cFilter

cAlias = ALIAS()
nRecno = RECNO()
nOrder = ORDER()
cFilter = FILTER() && say filter is: ID=49999, cFilter is "ID=49999"

**** do all the report stuff
**** end of report stuff

SELECT cAlias()
SET ORDER TO (nOrder)
SET FILTER TO &cFilter)
GO nRecno


***END EXAMPLE

There are several ways to do this that are way more oopy--for example if you do this in a lot of different places, you'll probably want a class that's responsible for handling this kind of operation. In fact I should, too! <s>


>How do I access the 'data state' ?
Previous
Reply
Map
View

Click here to load this message in the networking platform