Vcl.Mask.TCustomMaskEdit.GetFirstEditChar

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function GetFirstEditChar: Integer;

C++

int __fastcall GetFirstEditChar();

Properties

Type Visibility Source Unit Parent
function protected
Vcl.Mask.pas
Vcl.Mask.hpp
Vcl.Mask TCustomMaskEdit

Description

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

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.

See Also