TESTFIELD Function

liizzliizz Member Posts: 125
Hi all,

Is it possible to use the TESTFIELD function in an OR condition.

For e.g:
IF Mode<> 'C' THEN BEGIN
IF (NOT ((Number='')) OR (Comments='')) OR
(NOT ((Comments='')) OR ("Number"='')) THEN
ERROR('Either Number or Comments should be filled');
END;

I want to validate if either the field Number or Comments have been input.

Thanks

Liizz

Comments

Sign In or Register to comment.