RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
SysUtils.IsValidIdent Function

Determines whether a string conforms to Delphi identifier rules.

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

SysUtils

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) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!