Incompatible types

[b][red]This message was edited by Hav0c #1 at 2006-2-8 5:43:44[/red][/b][hr]Hi allI have an question what does Incompatible types: 'TPersistent' and 'TMembersRec' mean ?i get the message at line regOutput.lines.Assign(OneRec);

Either way, you attempt to Assign a OneRec to a TStrings (regOutput.lines.Assign(OneRec)). Whatever you do to fix it, this is still not possible then. What you (probably) could do is regOutput.lines.Add(OneRec.SurName)

: :: Either way, you attempt to Assign a OneRec to a TStrings (regOutput.lines.Assign(OneRec)). Whatever you do to fix it, this is still not possible then. What you (probably) could do is regOutput.lines.Add(OneRec.SurName

regOutput.lines.Add(OneRec.SurName) works if u only want the SurName in regOutput but the question is how do I get it in this format