Edit Field - AutoCompleting Event

Fired as a value is being edited allowing for a replacement value to be returned

Member of Edit Field (PRIM_MD.Edit)


Name Type Data Type Description
Value *Both Unicode String Current value of the field and the replacement value to return


The AutoCompleting event provides an opportunity for the value to be completed as the user types.
The value entered is passed in to the event via the Value parameter.  The value can then be modified and returned to the edit.
Selection of characters within the edit is managed automatically.


In this example, the value is matched against a set of predefined values.
Begin_Com Role(*EXTENDS #PRIM_WEB) Height(456) Width(864)
   Define_Com Class(#PRIM_MD.Edit) Name(#Edit) DisplayPosition(1) Label('Enter a Value') Left(16) Parent(#COM_OWNER) TabPosition(1) Top(8)
   Evtroutine Handling(#Edit.AutoCompleting) Value(#Value)
      Case (#Value)
      When (= "1")
         #Value := "100"
      When (= "2")
         #Value := "200"
      When (= "3")
         #Value := "300"
      When (= "4")
         #Value := "400"

See also

All Component Classes

Technical Reference

LANSA Version 15, April 2020