Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

TStrings and Arrays

Status
Not open for further replies.

gforrest

Programmer
Apr 26, 2000
39
CA
Hi,

I'm trying to get data from a record (structure) and copy it to a memo box component. I keep getting compatibility errors.

Here's the code:

procedure TEdtLgFrm.FormActivate(Sender: TObject);
var
RecINFO : INFO; //INFO is a Record
begin
read_options(@RecINFO); //read options file
EdtLgMb.Lines := RecINFO.logo; //get logo info from INFO

end;

Anyone know how I do this?

Thanks.
 
Thanks,

I tried this but I still get an error message indicating "Incompatible Types: Strings and Arrays". The 'logo' variable is an Array.
 
gforrest,

Memo.Lines is a stringlist. Create a temporary string list, add() each source line to it, and then assign it to the Lines property.

-- footpad
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top