RAD Studio VCL Reference
|
Returns the index at which a specified substring begins.
function Pos(const subStr: AnsiStringBase&): Integer;
__fastcall int Pos(const AnsiStringBase& subStr) const;
System::AnsiStringBase::Pos returns the index in the System::AnsiStringBase at which the substring subStr begins, where 1 is the index of the first character, 2 is the index of the second character, and so on. If the substring is not contained in the System::AnsiStringBase, System::AnsiStringBase::Pos returns 0.
Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
|
What do you think about this topic? Send feedback!
|