Entry Control for min= max Values

SUMMARY

It is described how to check values entered via Numeric Edit Field for min/max entry.

CONTENTS

  1. Overview
  2. Preliminary work
  3. Example of Use

Overview

ALPHA-VISION® allows to restrict entries made via an Numeric Edit Field to a defined range.
An entry out of that range is rejected by the system and an according message is displayed in the status line.

Preliminary work

Messages to be displayed in the status line must be created as a message and a MessageID that refers to it, by using the ALPHA-VISION® program "AvET", or must already exist.
Thereto see: AvET_Messages

Example of Use

On a Numeric Entry Field it should only be possible to enter values between -100 and +100. Values out of that range should be refused by the system and the status message “Value too high”, respectively “Value too low” should be displayed.

Settings in the Picture

To the Numeric Entry Field “Limit” under ‘Category’ “Action” the ‘Posttrigger function’:
Usr_MinMax(-100,MIN_0,100,MAX_1) is definiert.



On inputting a value lower than -100, in the status line the message bound to the MessageID “MIN_0” ("Value too low") is displayed.
On inputting a value higher than 100, in the status line the message bound to the MessageID “MAX_1” ("Value too high") is displayed.