ALL
Syntax
![]()
Command
Mandatory parameter Optional parameter Mandatory keyword Optional keyword |
<Result> := ALL (<Expression>, <Character>)
Description
This function can be called to test if a value contains no other characters than the one that is specified as <Character>. If all characters in this value match with the specified <Character>, this function will return "TRUE". Otherwise, it will return "FALSE".
Diagram
Returned value type
Boolean
Parameters
Parameter | Description |
<Result> |
The object to place the boolean result in |
<Expression> | Expression that returns the value to be tested |
<Character> | A single character specified between single quotes (' '). The character may also be specified as a hexadecimal, so you may also specify '@41@' instead of 'A' |
Example
sa-10 := '**********'
sn-6 := 777787
if all (sa-10, '*')
sme ('SA-10 is all stars')
endif
if not all (sn-6, '7')
sme ('SN-6 is not all sevens')
endif
sn-6 := 777787
if all (sa-10, '*')
sme ('SA-10 is all stars')
endif
if not all (sn-6, '7')
sme ('SN-6 is not all sevens')
endif