KNOWLEDGE BASE
Log In    |    Knowledge Base    |    4D Home
Tech Tip: Checking 4D Constants Values
PRODUCT: 4D | VERSION: 20 | PLATFORM: Mac & Win
Published On: November 4, 2024

4D constants are a useful feature that allows code to be more humanly readable by allowing a value to be represented by a self-defining string. Unfortunately for humans, when commands execute they get evaluated and return the final value. This can make some features hard to debug such as the Type command which can return the type as a number that is associated with a constant.

There are various ways to check which constant evaluates to which values. The simplest method, while debugging, is to enter the constant into the expression pane of the debugger. This will determine the constant and show its value.