FieldRef.TestField(DateTime, ErrorInfo) Method
Version: Available or changed with runtime version 8.1.
Determines whether the contents of a field matches a given value. If the contents differ from the given value, an error message is displayed.
Syntax
FieldRef.TestField(Value: DateTime, ErrorInfo: ErrorInfo)
Parameters
FieldRef
Type: FieldRef
An instance of the FieldRef data type.
Value
Type: DateTime
The value that you want to compare with the contents of the field referred to by FieldRef. The data type of Value must match the type of the field. If you include Value and the contents of the field do not match, an error message is displayed. If you omit Value and the content of the field is zero or blank (empty string), an error message is displayed.
ErrorInfo
Type: ErrorInfo
Additional information to include in the error if the test fails.
See Also
FieldRef Data Type
Get Started with AL
Developing Extensions
Обратна връзка
https://aka.ms/ContentUserFeedback.
Очаквайте скоро: През цялата 2024 г. постепенно ще отстраняваме проблемите в GitHub като механизъм за обратна връзка за съдържание и ще го заменим с нова система за обратна връзка. За повече информация вижте:Подаване и преглед на обратна връзка за