Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Instantiating built-in ASP objects Directly in VFP Code
Message
From
28/02/2000 14:51:09
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Title:
Instantiating built-in ASP objects Directly in VFP Code
Miscellaneous
Thread ID:
00338620
Message ID:
00338620
Views:
39
Hi all,

I have a question about Object Creation.

In an ASP page, there are several built-in Objects:
Request, Response, Session, Server, Application

These in turn are attached to a ScriptingContext object

I need to create this ScriptingContext object to use in a testing application for a VFP COM server.

MSDN refers to it as IScriptingContext for C++ interfaces (and says its obsolete) and for VB shows it simply as the ObjectContext object.

Does anyone know how to get at this object in VFP?

I tried oContext = CREATEOBJECT("ASP.ObjectContext"), but this blew me right out of VFP without even an error (Pretty cool, try it sometime *s*)

Incidently, if I find I can create this object, I am hoping to then be able to do something like:
oReq = oContext.*someContainer*("Request")
oReq.Form("test1").value = "test"
Where *someContainer* is the name of the object container (I don't know this yet either). I don't even know if this part is possible, but as I see it, getting an object reference is the first step.

Thanks In Advance,
Bill
Next
Reply
Map
View

Click here to load this message in the networking platform