Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Accessing SQL Server Data with WC
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
West Wind Web Connection
Divers
Thread ID:
00757757
Message ID:
00758114
Vues:
30
>Hi Michael:
>
>When the three COM instances instantiate I would like to make a connection to SS and have connection available to Process method where code executes. Where is a good place to do so? I have tried INIT method of WebProjectconfig (comments say it hold props for life of server) class, but prop values seems to change when I reach Process class where my code is supposed to execute.
>
>Thanx,
>Charlie

I tend to put things like this (object references, connection handles, etc.) in the SetServerProperties() method of your *main.PRG. When your *Config fires, it loads the properties from an INI file that it has created with the same name. This lets you override the property values via the INI; it's not a good place for things like connection handles for this reason.
-Paul

RCS Solutions, Inc.
Blog
Twitter
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform