Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Field - ErrorText Property

Panel
bgColor#2c3c4c

Text to show when the field is in error

Member of Field (PRIM_MD.Field)

Data Type - String

Details

The ErrorText property specifies the text to be shown when the Error property is set to True.

The text that is displayed in the Helper area of the control below the input.

Example

In this example, a field shows in error when the password isn't valid.

     Begin_Com Role(*EXTENDS #PRIM_WEB) Height(672) Width(1017)
Define_Com Class(#PRIM_MD.EditField) Name(#Edit) DisplayPosition(1) Label('Password') Left(112) Parent(#COM_OWNER) TabPosition(1) Top(136) ErrorText('Min 6 chars, one upper|lower|number') HelperPosition(Bottom) Height(68) Width(377)
Evtroutine Handling(#Edit.Changed)
#Edit.Error := *Not #Edit.Value.IsValidPassword( Medium )
Endroutine
End_Com

See also

All Component Classes

Technical Reference