validateValue method: DataSourceParameter class
Syntax
validateValue(Value, CheckPrompt)
Description
Use this method to validate the value according to its field type, the edit type, and the usage type. Date or date time values are translated to the standard format as a string. Exceptions or errors are raised for invalid values.
Parameters
| Parameter | Description |
|---|---|
|
Value |
Specifies the value to be validated as a string. |
|
CheckPrompt |
Specifies a Boolean value indicating whether the value should be checked against the valid values list of this data source parameter. The type of check depends on the edit type of this data source parameter, the valid values list could be a user-specified values list, translate values of a field, or values in a prompt table. When CheckPrompt is True, check the value; when False, check the data type of the value only. |
Returns
A string with the validated value.