RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
WideString::Pos Method

Returns the index at which a specified substring begins.

Pascal
function Pos(const subStr: WideString&): Integer;
C++
__fastcall int Pos(const WideString& subStr) const;

Use System::WideString::Pos to locate a substring of theSystem::WideString::WideString. System::WideString::Pos returns the index of the first character in subStr. If subStr is not contained in theSystem::WideString::WideString, System::WideString::Pos returns 0. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!