Internet Direct (Indy)
Home
PreviousUpNext
IndyPos Variable

Specifies the Pos function handler for single- or multi-byte character sets.

Pascal
IndyPos: TPosProc = nil;

IndyPos is a unit global TPosProc variable that determines the function used for single-byte and multi-byte equivalents of the RTL Pos function. IndyPos is assigned the initialization section of the Indy library, and will contain a pointer to the function used for run-time support. 

For single-byte character sets, where the leading byte is #0 (Decimal 0), IndyPos will use the address of SBPos. SBPos implements the Pos function hidden by Object Pascal "compiler magic". 

For multi-byte character sets, IndyPos will use the address of 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.