>>>Can anyone help with that and ASP/VFP servers?
>>>Mark
>>
>>What's your question?
>How do you create an instance in ASP/VFP scenario?
>Thanks Mark
For an object loaded from an ASP page, you can create an OnStartPage method that will get called automatically when the page loads. This method will be passed an instance of the ScriptingContext object. You should be aware that the ScriptingContext object has been replaced by the Context Object, and MS recommends that you use the Context Object instead to access the ASP objects. You can get a reference to the Context Object from within a VFP COM object called from an ASP with this code:
oMTX = CREATEOBJECT("MTXAs.AppServer.1")
oCTX = oMTX.GetObjectContext()
You can then access the ASP objects like:
oResponse = oCTX.Item("Response")
oResponse.Write("This is from the COM server")
Erik Moore
Clientelligence