Record.TestField(Any, Any, ErrorInfo) Method
Version: Available or changed with runtime version 8.1.
Tests whether the contents of a field match a given value.
Syntax
Record.TestField(Field: Any, Value: Any, ErrorInfo: ErrorInfo)
Parameters
Record
Type: Record
An instance of the Record data type.
Field
Type: Any
The field that you want to test.
Value
Type: Any
The value that you want to compare to Field. The data type of this parameter must match the data type of Field. If you include this optional parameter and the contents of Field do not match, then an error message is displayed. If you omit this parameter and the contents of Field is zero or blank (empty string), then an error message is displayed.
ErrorInfo
Type: ErrorInfo
Additional information to include in the error if the test fails.
See Also
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈