Topic Path: Symbol Reference > Types > TPosProc Type
ContentsIndexHome
PreviousUpNext
TPosProc Type
File
TPosProc = function (const Substr, S: string): Integer;
Parameters 
Description 
substr 
Value to be located in the WideString.
 
str 
WideString to be searched for the given value.
 
Substr 
Value to be located in the String.
 
String to be searched for the given value. 

Integer - Position of the substring in the given string value.

TPosProc is an Integer function that defines the implementation used for the IndyPos function. 

 

On the .Net platform, TPosProc is declared using WideString as the data type for all parameters to the function. 

 

On all other platforms, TPosProc is declared using String as the data type for all parameters to the function. 

Use IndyPos to access the platform-specific implementation assign during initialization of the Indy library.

IndyPos 

AnsiPos

Copyright 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Post feedback to the Indy Docs Newsgroup.