Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
FoxISAPI
Message
 
 
To
03/12/2000 16:10:41
General information
Forum:
Visual FoxPro
Category:
Internet applications
Title:
Miscellaneous
Thread ID:
00448621
Message ID:
00448633
Views:
9
>Is it possible to pass more than 1 parameter in the URL using FoxISAPI? The examples in Fox's help file shows it passing only one. The example shows a method that accepts 3 parameters. The first is whatever I need to pass in and the other 2 are passed in by FoxISAPI.
>
>I would guess you would have to set up a 4th parameter in your method, but I don't know how to pass it from the URL?
>
>TIA.
The method in your COM object will always receive three parameters from FoxISAPI.DLL

The first one is a "browser encoded" string containing all of the parameters passed from your web page (via a hyper link or a form's submit method, or even typed into the Browsers Address field). E.g. passing two parameters called Var1 and Var2:
http://localhost/scripts/foxisapi.dll/MyExe.MyClass.MyMethod?Var1=The+cat+sat+on+the+mat&var2=this+is+a+test.
The second is the name of a unique ini file containing details of the connection for the 'current' request.

The third is a numeric (passed by reference) that determines whether your COM object is released by FoxISAPI.DLL after you return from your method. If you leave this third parameter unchanged then your COM object will be released - this has the downside that the next time your method is invoked, the object will need to be re-instantiated from scratch. This is the equivalent of restarting for fox app, all tables need to be re-opened, environment re-established, etc. From a performance perspective it is generally better to change this value (from zero to one - or the other way round, can't remember of the top of my head).

Hope this helps.
censored.
Previous
Reply
Map
View

Click here to load this message in the networking platform