func init // defines instance this.instance = this.props("Field").value.instance // defines type this.type = sys.get_manager_prop('Field', 'Type') this.typecode = sys.type_code(this.type) end func doField(value) blk.println(this.get_namespace(), '.', this.instance, ' = ', sys.to_type(d("Value"), this.typecode), ';') end func Field return(sub(this.get_namespace() + '.' + this.instance, this.typecode)) end func get_namespace() el = this.parent.get_parent_sdk() if(isdef("Namespace")) tMode = sys.get_manager_prop('Field', 'TypeModifier') if(tMode _and_ 2) namespace = code(el.cName) else namespace = code(el.instance) end else namespace = code(el.cName) + '.' + this.props("Namespace").value.instance end return(namespace) end