RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomMaskEdit.GetFirstEditChar Method

Returns the index in the EditMask of the first nonliteral character.

Pascal
function GetFirstEditChar: Integer;
C++
__fastcall int GetFirstEditChar();

Use GetFirstEditChar to find the first position of the EditMask where the user can modify the EditText. 0 specifies the first character, 1 the second character, and so on. If there is no mask, GetFirstEditChar returns zero. 

Use GetFirstEditChar as a starting point for programmatically processing all the nonliteral characters in the EditText. Use GetNextEditChar to continue to loop through the editable characters in the EditText, and GetLastEditChar to determine when all nonliteral characters have been processed. 

 

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