tComboBox.Items as a delimited string lazarus / 31-LCL ---------------------------------------------------------------------- fatmonk · 2015-01-28 11:31 I want to convert the TStrings list of items in a TComboBox into a semi-colon (;)delimited string for storing in an ini file. (It's legacy so I have no choice about the storage format). I'm converting the delimited text into the TComboBox.Items no problem using: Code: [Select]myDelimitedString:=TStringList.Create; myDelimitedString.Delimiter:=';'; myDelimitedString.StrictDelimiter:=true; myDelimitedString.DelimitedText:='textString1;textString2;textString3' ; myComboBox.Items.Clear; myComboBox.Items.AddStrings(myDelimitedString); but how do I go the other way? Code: [Select]myDelimitedString:=TStringList.Create; myDelimitedString.Delimiter:=';'; myDelimitedString.StrictDelimiter:=true; myDelimtedString:=myComboBox.Items; causes a runtime 'External: SIGIL' error... What am I doing wrong? Thanks, FM ---------------------------------------------------------------------- Blaazen · 2015-01-28 12:20 Try Code: [Select]myDelimtedString.Assign(myComboBox.Items); ---------------------------------------------------------------------- fatmonk · 2015-01-28 15:36 Same problem with that code unfortunately... -FM ---------------------------------------------------------------------- Bart · 2015-01-28 16:50 Code: [Select]  SL := TStringList.Create;   SL.Assign(ComboBox1.Items);   SL.Delimiter := ';';   SL.StrictDelimiter := True;   S := SL.DelimitedText;   SL.Free;   writeln('S = ',S); works for me (Lazarus 1.5, fpc 2.6.4, win32).