Hi
I am trying to write 2 text files from 1 text file to populate a combobox and to then populate a edit box on change of the combo box anyway the problem I have is I cant seem to write to the combobox
here is the code any help would be much apprexciated
procedure TForm1.startup(sender: TObject);
var
SomeTxtFile : TextFile;
anotherfile :TextFile;
yetanotherfile :Textfile;
parseline : string;
begin
deletefile('c:\impex\desc.txt');
AssignFile(SomeTxtFile, 'c:\impex\concess.asc');
AssignFile(anotherFile, 'c:\impex\style.txt');
AssignFile(yetanotherFile, 'c:\impex\desc.txt');
Reset(SomeTxtFile);
while not EOF(SomeTxtFile) do begin
ReadLn(SomeTxtFile, parseline);
if copy(parseline,31,1) = 'Y' then begin
WriteLn(anotherfile,parseline,1,5);
WriteLn(yetanotherfile,parseline,1,30);
end;
end;
CloseFile(SomeTxtFile);
CloseFile(anotherfile);
CloseFile(yetanotherfile);
Combobox1.Text := 'anotherfile';
end;