KNOWLEDGE BASE
Log In    |    Knowledge Base    |    4D Home
Tech Tip: Avoid naming table fields the same as common programming terms
PRODUCT: 4D | VERSION: 18 | PLATFORM: Mac & Win
Published On: February 22, 2021

When working within a table form, you may notice that you have access to the table's fields without explicitly typing out the table name as shown below:





However, what would happen if a table field was named the same as a common programming term such as the "For" keyword?





Notice how the table field will take priority over the actual For loop block which results in a syntax error. While this case may come across as rare or niche, it is also recommended to avoid naming table fields as common programming terms. The best way to handle this scenario is to simply add an additional character like an underscore (E.G. For_) for the table name to avoid any confilcts with programming syntax.