Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
IScriptingContext
Message
De
29/06/2000 16:48:23
 
 
À
29/06/2000 16:26:06
Information générale
Forum:
Visual FoxPro
Catégorie:
Applications Internet
Divers
Thread ID:
00386574
Message ID:
00386748
Vues:
18
>>>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform