RAD Studio VCL Reference
AnsiStrings.AnsiStartsText Function

Test if leading part of text matches subtext without case-sensitivity.

function AnsiStartsText(const ASubText: AnsiString; const AText: AnsiString): Boolean; overload;
Boolean AnsiStartsText(const AnsiString ASubText, const AnsiString AText);

AnsiStartsText returns true if the leading part of the given text matches the subtext with case-sensitivity and returns false otherwise. The compare operation is controlled by the current user locale.  

Use AnsiStartsStr to make this test with case-sensitivity. 


Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!