Why/How does this assignment work?
var MyYAMLNode: TYAMLNode; //Line 1
var iValue: integer = MyYAMLNode; //Line 2
var sValue: string = MyYAMLNode; //Line 3
With records that I declare line 2 would give me a "Incompatible types "Integer" and "TMyRecord"
With records that I declare line 3 would give me a "Incompatible types "String" and "TMyRecord"
Why/How does this assignment work?
var MyYAMLNode: TYAMLNode; //Line 1
var iValue: integer = MyYAMLNode; //Line 2
var sValue: string = MyYAMLNode; //Line 3
With records that I declare line 2 would give me a "Incompatible types "Integer" and "TMyRecord"
With records that I declare line 3 would give me a "Incompatible types "String" and "TMyRecord"