 |
ALPHA-VISION® Misc Functions: Usr_MinMax
|
Usr_MinMax
SUMMARY
Usr_MinMax - Compares inputs against values
SYNTAX
Usr_MinMax (MinVal,MinMessage,MaxVal,MaxMessage)
ARGUMENTS
- MinVal
-
lower Limit
- MinMessage
-
Message Id for the lower Limit
- Maxwert
-
upper Limit
- MaxMessage
-
Message Id for the upper Limit
RETURN VALUE
0: Value is outside the defined Limits
1: Value is inside the defined Limits
DESCRIPTION
The entry made is compared against the defined upper und lower limit.
If the entry made falls below the lower Limit the message defined by
MinMessage is displayed in the status line.
If the entry exceeds the upper Limit the message for MaxMessage is
displayed.
In both cases the entry is rejected.
Preconditions:
The appropriate MessageIDs with the according Messages must exist,
or have to be created via the AvEt .
EXAMPLES
Usr_MinMax(1,min,50,max)
On an input lower than 1 the message defined for “min” is displayed;
e.g. “input value too low”.
On an input higher than 50 the message defined for “max” is displayed;
e.g. “input value too high”.
Note:
If an entry field should be checked for the time e.g. 3:30 ( 3 minutes,
30 seconds)it must be entered in seconds (210)
Syntax Notation
- [aaa]
- aaa is optional (zero or one occurences)
- (aaa|bbb)
- aaa exclusive or bbb
- (aaa)*
- aaa may occur indefinitely often or may be omitted
- (aaa)+
- aaa may occur indefinitely often but at least once
- (aaa)m..n
- aaa may occur from m to n times