I am trying to assign values to two properties of an object I have created. The relevant parts of the declaration are below:
type TTagv2 = record
//Variables used by unit
exists: Boolean;
//Frame variables
UFID: array of record //Unique file identifier
owner: string;
identifier: string;
end;
end;
There is more to the object but its far too long to post!!
The problem is, I get an error message (E2018 Record, object or class type required) when I try to compile the following code:
info.UFID.owner := LeftStr(strreadin, compos - 1);
info.UFID.identifier := RightStr(strreadin, Length(strreadin) - compos);
The error applies to both of these lines.
The strange thing is that I have another set of properties within the same object defined in exactly the same way and I can successfully use them exactly the same way and within the same function!!
Anyone have any ideas?
Gary
type TTagv2 = record
//Variables used by unit
exists: Boolean;
//Frame variables
UFID: array of record //Unique file identifier
owner: string;
identifier: string;
end;
end;
There is more to the object but its far too long to post!!
The problem is, I get an error message (E2018 Record, object or class type required) when I try to compile the following code:
info.UFID.owner := LeftStr(strreadin, compos - 1);
info.UFID.identifier := RightStr(strreadin, Length(strreadin) - compos);
The error applies to both of these lines.
The strange thing is that I have another set of properties within the same object defined in exactly the same way and I can successfully use them exactly the same way and within the same function!!
Anyone have any ideas?
Gary