docs.intersystems.com
InterSystems IRIS Data Platform 2019.2  /  Class Definition Reference  /  Parameter Keywords

Class Definition Reference
Constraint
Previous section           Next section
InterSystems: The power behind what matters   
Search:  


Specifies a user interface constraint 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 Studio.
Details
The constraint value is used by Studio 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;
See Also


Previous section           Next section
Send us comments on this page
View this book as PDF   |  Download all PDFs
Copyright © 1997-2019 InterSystems Corporation, Cambridge, MA
Content Date/Time: 2019-10-18 05:16:51