Re: Can't access Application variable in TWebModule...
- From: Rob Kennedy <me3@xxxxxxxxxxx>
- Date: Wed, 21 Feb 2007 22:32:19 -0600
Blaise wrote:
Where is the Application variable when using (File: New: Web Server
Application) TWebModule app? I see it in the .dpr
-------------------------------------
library PDASRVC1;
uses
WebBroker,
ISAPIApp,
PDAWSRVC in 'PDAWSRVC.pas' {PDAWebService: TPDAWebService};
{$R *.RES}
exports
GetExtensionVersion,
HttpExtensionProc,
TerminateExtension;
begin
Application.Initialize;
Application.CreateForm(TPDAWebService, PDAWebService);
Application.Run;
end.
This DPR file uses three units. Therefore the Application global variable must be declared in one of those three units. Find the correct one, and then make sure it appears on the "uses" clause of whatever other units need to access that variable.
--
Rob
.
- Follow-Ups:
- Re: Can't access Application variable in TWebModule...
- From: J French
- Re: Can't access Application variable in TWebModule...
- References:
- Can't access Application variable in TWebModule...
- From: Blaise
- Can't access Application variable in TWebModule...
- Prev by Date: Re: Form changes style when size adjusted
- Next by Date: Re: Form changes style when size adjusted
- Previous by thread: Can't access Application variable in TWebModule...
- Next by thread: Re: Can't access Application variable in TWebModule...
- Index(es):