Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Toggling Resource Files
Message
De
26/02/2004 13:25:02
 
 
À
26/02/2004 05:42:02
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Divers
Thread ID:
00880784
Message ID:
00881178
Vues:
31
Terry,

I'll try it but I was thinking that "Issuing SET RESOURCE TO performs an implicit SET RESOURCE ON." I set the Resource Off before I switch user files just to make sure the current resource file is closed.

Thanks


Rod


Not tried this, and just an immediate thought, but maybe your setting the resource off overrides the subsequent "Set resource to ..."

Maybe you don't need the "set reso off" or, after "set reso to ..." issue a "set reso on".


Terry

>Hi all,
>
>I created a resource file called noprint.dbf which doesn't have the print option when you preview a report. My default resource is called foxuser.dbf.
>
>For the past couple of weeks, it worked fine. Then I started getting an error "File access is denied" at the line where I switch back to the default resource file.
>
>My code is:
>
>lcResource=SET("resource",1)
>SET RESOURCE TO noprint.dbf
>
>REPORT FORM MyReport PREVIEW
>
>SET RESOURCE OFF
>SET RESOURCE TO &lcResource
>
>I'm using VFP 8.
>
>Thanks in advance for any help you may be able to give
>
>
>Rod Conner
Worry is the interest you pay, in advance, for a loan that you may never need to take out.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform