Object property must be MultiDimensional on $GET and $DATA

objectscriptQuality release 
3.3.0
Id 
OS0103
Rule type 
Bug
Severity 

Blocker

Blocker
SQALE characteristic 
  • Security
    • Errors
Tags 
bug, runtime-failure
Remediation function 
Constant/issue
Remediation cost 
10min

In functions $GET ($G) and $DATA ($) you can specify a multidimensional property reference as variable with the syntax obj.property.

Attempting to use $GET or $DATA on a non-multidimensional object property results in an <OBJECT DISPATCH> error.

Non-compliant code

On following code the property Name is not multidimensional:

 if $get(objPerson.Name)'="" set name=objPerson.Name