Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Accessing SQL Server Data with WC
Message
General information
Forum:
Visual FoxPro
Category:
West Wind Web Connection
Miscellaneous
Thread ID:
00757757
Message ID:
00758114
Views:
23
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform