KNOWLEDGE BASE
Log In    |    Knowledge Base    |    4D Home
Tech Tip: Colon No Longer Supported in Identifiers
PRODUCT: 4D | VERSION: 19 R 4 | PLATFORM: Mac & Win
Published On: March 6, 2023

Starting with 4D v19R4, due to the support of the ternary operator, the colon “:” is no longer allowed in variable, field, constant, function, plugin and project method names.

If your database/project contains identifiers with colons, you must replace them before converting it to v19 R4 or higher, otherwise you may experience errors in your code.

For example, if you have a variable named a:b, it could be interpreted as ternary operator syntax:

$value:=($size>100)? a:b // here 'a:b' is viewed as a ternary operator