Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有更简单的方法来反转布尔值而不是使用 IF ELSE 构造? 通常我会使用 ! 在布尔值前面。但这在 Navision 中并不能解决问题
您可以使用NOT关键字代替!.
NOT
!
您可以使用此示例反转布尔变量值:
PROCEDURE InvertValue(VAR Value @ Boolean;); begin Value := NOT Value; end;