[Solved] I can't figure out how to convert from AnsiString to TString lazarus / 61-Beginners ---------------------------------------------------------------------- Trenatos · 2015-06-23 19:21 I've searched for some time now, but can't find a solution for this: I have an array where I store file information, among them name. fileList: Array of Array of string; I grab the filename using the OpenDialog, save into a variable, use ExtractFilename to get the filename from the full path, save into the array, then try to update tabs in a TTabControl, at which point I get: Got "AnsiString", expected "TStrings" My problem is that I can't figure out how to convert from AnsiString to TString. theFilename := OpenDialog1.FileName; SynEdit1.Lines.LoadFromFile(theFilename); fileList[0][0] := ExtractFileName(theFilename); fileList[0][1] := 'File-information'; theTabs.tabs := fileList[0][0]; ---------------------------------------------------------------------- typo · 2015-06-23 19:28 TStrings class is an array of strings, AnsiString is a single string. TStrings has a Text property, which is a string. ---------------------------------------------------------------------- Trenatos · 2015-06-23 19:46 Thanks Typo! That tidbit was all I needed, I can now proceed