RAD Studio VCL Reference
|
Returns the index at which a specified substring begins.
function Pos(const subStr: AnsiStringT&): Integer;
__fastcall int Pos(const AnsiStringT& subStr) const;
System::AnsiStringT::Pos returns the index in the System::AnsiStringT 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::AnsiStringT, System::AnsiStringT::Pos returns 0.
Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
|
What do you think about this topic? Send feedback!
|