Is there a more easy way to inverse a boolean instead of using a IF ELSE construction?
Normally I would use the ! infront of a boolean value. But that doesn't do the trick in Navision
You can use the NOT
keyword in place of !
.
You can use this example to invert a boolean variable Value:
PROCEDURE InvertValue(VAR Value @ Boolean;);
begin
Value := NOT Value;
end;
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.