func init // adds using namespace sys.add_use('System') // initialize instance if(isdef("ElementType")) this.type = 'Object' else this.type = code(this.props("ElementType").value.props("TypeName").value) if(this.type == 'Object undefined') error(this.name + ' - property ' + this.props("ElementType").name + ' does not defined') this.type = 'Object' end end sys.add_var(this.name, this.type) end func doGetValue(index) blk.println(this.codename, ' = ', sys.to_type(d("Array") + '.GetValue(' + d("Index1"), sys.type_code(this.type)), ');') event("onGetValue", sub(this.codename, sys.type_code(this.type))) end func doGetValue2(index1, index2) blk.println(this.codename, ' = ', sys.to_type(d("Array") + '.GetValue(' + d("Index1") + ', ' + d("Index2"), sys.type_code(this.type)), ');') event("onGetValue", sub(this.codename, sys.type_code(this.type))) end func doGetValue3(index1, index2, index3) blk.println(this.codename, ' = ', sys.to_type(d("Array") + '.GetValue(' + d("Index1") + ', ' + d("Index2") + ', ' + d("Index3"), sys.type_code(this.type)), ');') event("onGetValue", sub(this.codename, sys.type_code(this.type))) end func doGetValue4(indices) blk.println(this.codename, ' = ', sys.to_type(d("Array") + '.GetValue(' + d("Indices"), sys.type_code(this.type)), ');') event("onGetValue", sub(this.codename, sys.type_code(this.type))) end func Value return(sub(this.codename, sys.type_code(this.type))) end