RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
StrUtils.AnsiStartsText Function

Indicates whether one string is a (case-insensitive) prefix of another.

Pascal
function AnsiStartsText(const ASubText: string; const AText: string): Boolean;
C++
Boolean AnsiStartsText(const AnsiString ASubText, const AnsiString AText);

StrUtils

AnsiStartsText returns true if the string specified by ASubText appears as the leading part of the string specified by AText. Comparison is performed case-insensitively and uses the current system locale. 

 

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