COBCH1603 '<名前>' には適切なシグネチャのあるインデクサーが見つからない

インデクサーを含まない型のインスタンスが、配列としてアクセスされています。

配列としてアクセスされるインスタンスの型はインデクサーを含む必要があります。次に例を示します。

class-id myClass1.
method-id main.
01 myField type myClass2.
    display myField[0]
end method.
end class.

class-id myClass2.
indexer-id string.		*> add an indexer to resolve the error
procedure division using value myParam as binary-long.
    getter.
    set property-value to myParam
end indexer.
end class.