KNOWLEDGE BASE
Log In    |    Knowledge Base    |    4D Home
Tech Tip: Special object attributes are case sensitive
PRODUCT: 4D | VERSION: 17 | PLATFORM: Mac & Win
Published On: May 30, 2019
Your current browser may not allow you to download the asset. We recommend Mozilla Firefox or Google Chrome.
Log In

When working with special object attributes like This.value (collection-based listboxes) and Collection.parameters (collection for query placeholders), always make sure the attribute name is entirely lowercase otherwise changing its case would yield incorrect results.

Example 1: This.Value (Incorrect)





Example 2: This.value (Correct)





Example 3: $Param.Parameters (Incorrect)

C_OBJECT($Params;$Selection)
$Params:=New object
$Params.Parameters:=New collection("Erick") // Incorrect
$Selection:=ds.Client.query("name = :1";$Params)




Example 4: $Param.parameters (Correct)

C_OBJECT($Params;$Selection)
$Params:=New object
$Params.parameters:=New collection("Erick") // Correct
$Selection:=ds.Client.query("name = :1";$Params)