Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Cmd buttons invisible but active after report
Message
De
25/11/1997 11:45:24
Nancy Folsom
Pixel Dust Industries
Washington, États-Unis
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00061971
Message ID:
00062182
Vues:
52
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' ?
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform