RAD Studio VCL Reference
SysUtils.IsValidIdent Function

Determines whether a string conforms to Delphi identifier rules.

function IsValidIdent(const Ident: string; AllowDots: Boolean = False): Boolean;
Boolean IsValidIdent(const AnsiString Ident, Boolean AllowDots = False);

Call IsValidIdent to determine whether the passed Ident is valid for use as an identifier, such as the name of a component. 

An identifier is a sequence of letters, digits or underscores. Only the first 63 characters are used uniquely. Letters are limited to A-Z and a-z, although the case is ignored. The first character cannot be a digit. 


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