Type | Description | |||
Label as Variant | A string expression that indicates the label of the editor. The Label paramater may include built-in HTML format like described bellow. | |||
Type as EditTypeEnum | An EditTypeEnum expression that indicates the type of the editor being added. | |||
Key as Variant | A Variant expression that indicates the key of the editor being added. If missing, the editor's key is the editor's label. |
Return | Description | |||
Editor | An Editor object being created. |
The following VB sample adds an editor to mask a phone number:
With Record1 .BeginUpdate With .Add("Phone", EXRECORDLibCtl.MaskType) .Mask = "(###) ### - ####" .Value = "(245) 282 - 1290" End With .EndUpdate End With
The following VC sample adds a password editor:
COleVariant vtMissing; vtMissing.vt = VT_ERROR; CEditor editor = m_record.Add(COleVariant("Password"), /*EditType*/ 1, vtMissing ); editor.SetOption( /*exEditPassword*/ 18, COleVariant( (long)TRUE ) ); editor.SetValue( COleVariant( "pass" ) );
The Label parameter may include built-in HTML tags like follows:
or <font ;31><sha 404040;5;0><fgcolor=FFFFFF>outline anti-aliasing</fgcolor></sha></font> gets: