Validate_Items - cDbRichEditDS_
Returns whether data in the control is valid
Type: Function
Return Data Type: Integer
Parameters
| Parameter | Type | Description |
|---|---|---|
| bNotFindReq | Boolean | Not used for text fields. |
Syntax
Function Validate_Items Boolean bNotFindReq Returns Integer
Call Example
Get Validate_Items bNotFindReq to IntegerVariable
Description
Returns whether the data in the control is valid.
Sample
This sample calls Validate_Items of control oDbRichEdit1. An error will be displayed in a message box if validation fails. For example, if the text in the control exceeds the size of the database table field the control is attached to, you will see Error 4424: Text too large for database field.
Procedure ValidateTextField
integer iValid
get Validate_Items of oDbRichEdit1 True to iValid
End_Procedure // ValidateTextField
Return Value
Returns 0 if data is valid or a non-zero value if data is not valid.