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];