RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomLocateFileService.FindIncludeFile Method

Returns the fully-qualified path name for an include file for a server-side script.

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

WebSnap applications call FindIncludeFile when they encounter a reference to an include file in server-side script. This method returns the fully-qualified path name for the include file. 

FindIncludeFile calls the virtual ImplFindIncludeFile method to obtain the path and name of the include file. In TCustomLocateFileService, ImplFindIncludeFile fetches the include file name by generating an OnFindIncludeFile event. Component writers that which to locate include files in some other way should override the ImplFindIncludeFile method. 

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. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!