Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Config.fpw won't set talk off
Message
De
24/04/2001 03:18:51
Dave Nantais
Light speed database solutions
Ontario, Canada
 
 
À
24/04/2001 00:20:15
F. Bennett Swenson
Sundance Aerial Photography
Hurst, Texas, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Installation et configuration
Divers
Thread ID:
00498841
Message ID:
00498875
Vues:
17
>On my machine, when I bootup or launch of VFP 6.0, TALK gets SET ON.
>
>I have setup file that runs as the last command in Config.fpw. I can put "SET TALK OFF"
>as the command in Config.fps RIGHT BEFORE calling the setup file and I can put "SET TALK OFF"
>as the LAST statement in the setup file, but when the program returns to Config.fpw,
>TALK gets SET ON.
>
>Even with no setup file called and "SET TALK OFF" as the last command the Config.fpw,
>TALK still gets SET ON.
>
>I can always issue "SET TALK OFF" from the command window, but why should I have to?
>Where's my oversight?
>
>TIA
>
>F. Bennett Swenson

I suspect the forms you are using in your application have their own private data session.

the SET TALK command is an example of a Visual Foxpro Environment variable.
Environment variables can be scoped to the entire application or to a specific datasession. SET TALK is scoped to individual data sessions.

Set global environment variables at the beginning of the application startup.

Set data session specific environment variables when a new datasession is created.

SET PROCEDURE TO is an example of an environment variable scoped globally.

SET SAFETY, SET TALK, and SET NEAR are examples of environment variables scoped to the current datasession.

SET NEAR and SET EXACT improperly handled can totally screw up your application.

HTH
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform