Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Where do I put SET TALK OFF?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00200784
Message ID:
00200930
Vues:
8
One possibility is in the BeforeOpenTables event
of your forms, or in your base form class, make a
call to a generic procedure which sets all your SET
statements.

That way you can set up the SET commands
you want for forms in one place.

The only drawback is that you would
have to pass in the form's data session
and set to it in the generic procedure:


************************
* BeforeOpenTables

=SetCommands(ThisForm.DataSessionId)

USE MyTable1
USE MyTable2



************************
FUNCTION SetCommands
LPARAMETERS nSession

SET DATASESTION TO nSession

SET TALK OFF
SET DELETED ON
SET SAFETY OFF
.
.
.
.

RETURN
Everything makes sense in someone's mind
public class SystemCrasher :ICrashable
In addition, an integer field is not for irrational people
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform