Internet Direct (Indy)
Home
PreviousUpNext
TPosProc Type
Pascal
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

Internet Direct (Indy) version 10.1.5
Copyright © 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Website http://www.indyproject.org.
Post feedback to the Indy Documentation newsgroup.