Constraint (Parameter Keyword)
Specifies a user interface constraint in IDEsOpens in a new tab for this parameter.
Usage
To specify a user interface constraint for this parameter, use the following syntax:
Parameter name As parameter_type [ Constraint = "constraint" ] = value ;
Where constraint is a string used by the IDEOpens in a new tab.
Details
The constraint value can be used by IDEsOpens in a new tab to provide input validation for the parameter. Its value is not used nor enforced by the class compiler.
This keyword works in conjunction with the Flags keyword. For example, if Flags is set to ENUM, then Constraint should be a comma-separated list of possible parameter values.
Example
Parameter MYPARM [ Constraint = "X,Y,Z", Flags = ENUM ] = "X";