RAD Studio VCL Reference
AnsiStrings.StartsStr Function

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

function StartsStr(const ASubText: AnsiString; const AText: AnsiString): Boolean;
Boolean StartsStr(const AnsiString ASubText, const AnsiString AText);

StartsStr 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. This function is the same as AnsiStartsStr

Use StartsText to make this test without case-sensitivity. 


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