COBCH1624 型 1型 2 に暗黙的に変換できない

指定された型への変換、または指定された型からの変換ができないため、SET 文を完了できません。

次に例を示します。

class-id myClass1.

method-id myFirstMethod static.

 01 myFloat float-long.
 01 myString string.
 01 myInt binary-long.
 01 myObject object.
 01 myDecimal decimal.

 set myFloat to myString   *> this is incorrect
 set myFloat to myInt      *> this is correct
 set myObject to myString  *> this is correct - string derives from object
 set myDecimal to myString *> this is correct - In the .NET framwork, the System.Decimal class has an implicit conversion operator 
                                                from type int (binary-long) to type System.Decimal

end method.

end class.