Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Data paths in COM
Message
De
04/04/2000 07:28:18
Scott Knight
Human Resources Development Canada
St. John's, Terre-Neuve, Canada
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Applications Internet
Titre:
Data paths in COM
Divers
Thread ID:
00354890
Message ID:
00354890
Vues:
42
I am trying to avoid hard coding paths in several components I have built. Ideally, I would like to set a property (MyObject.CappStartpath) in the MyObject.init that would reflect the the path of the IIS application that has instantiated it. Something like "d:\Inetpub\wwwroot\webfax\", webfax being the application. The data is in a "data" subdirectory from webfax.

I have figured out a two step work around when it is called from ASP but when instantiating from inside another component I'm stuck. The two step would look something like this:

<%
Set oTools = Server.CreateObject("WebClasses.HTMLTools")
oTools.cAppStartpath = Request.ServerVariables("APPL_PHYSICAL_PATH")
%>

If I could pass Request.Server... Value to the INIT of the Object as it is Instantiated I could live with it. I would like for the MyOjectinit to set it itself some how if possible. Any thoughts would be much appreciated.

Thanks


Scott
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform