RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomLocateFileService.ImplFindIncludeFile Method

Provides the underlying implementation for the FindIncludeFile method.

Pascal
function ImplFindIncludeFile(AComponent: TComponent; const AFileName: string; var AResult: string): Boolean; virtual;
C++
virtual __fastcall Boolean ImplFindIncludeFile(TComponent * AComponent, const AnsiString AFileName, AnsiString AResult);

The FindIncludeFile method calls ImplFindIncludeFile to locate the fully-qualified path name for an include file to a server-side script. ImplFindIncludeFile generates an OnFindIncludeFile event to obtain the fully-qualified path name. 

AComponent is the Web module context object that stores the reference to the include file. 

AFileName is the name of the include file to locate. 

AResult returns the fully-qualified path name where the WebSnap application can find the requested file. 

FindIncludeFile returns true if it locates the requested file and returns its fully-qualified name as AResult. It returns false if there is no OnFindIncludeFile event handler or if the event handler does not return a value for AResult. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!