SftMask/OCX 6.5

SftMaskAutoComplete.AddTop Method

Softel vdm, Inc.

Adds a custom autocomplete entry at the top of the list.

Syntax       

VB.NET

object.AddTop(ByVal EntryText As String, ByVal EntryType As Short)

VB

object.AddTop(ByVal EntryText As String, ByVal EntryType As Integer)

C#.NET

void object.AddTop(string EntryText, short EntryType);

VC++

HRESULT object->AddTop(_bstr_t EntryText, short EntryType);

C

HRESULT object->raw_AddTop(BSTR EntryText, short EntryType);

Delphi

procedure object.AddTop(EntryText : WideString, EntryType : Smallint);

object

A SftMaskAutoComplete object.

EntryText

The text to be added as an entry in the list of suggestions.

EntryType

A numeric value which is used once the user selects and accepts an entry. This value is passed to the MatchCustom event as EntryType argument. This value cannot be 0.

Comments

The AddTop method adds a custom autocomplete entry at the top of the list.

The AddTop and AddBottom methods can only be used while handling a MatchAddCustomItems event.

Custom entries are only available if the AutoComplete.Mode property is defined as autocompleteSftMaskSuggest. Other modes do not support custom entries.

If the user selects and accepts a custom entry, the MatchCustom event occurs.


Feedback / comments / error reports for this topic
© 2000, 2008 - Softel vdm, Inc. - www.softelvdm.com