Format('%s /ai:%s "/path:%s" /importry:%d "/userid:%s" ' +
'"/password:%s" /reinyear:%d',
[sPathToDAS + 'DAS.EXE', 'leg',
'c:\Applications\eQuote\FileWatcher\temp\USSECTIO.TXT',
2003, 'CJOHNSON', '', 2003]);
Will need one similar like this, too:
Format('%s "/ai:%s" "/path:%s" "/userid:%s" '+
'"/password:%s" /reinyear:%d',
[sPathToDAS + 'DAS.EXE', 'max',
'c:\Applications\eQuote\FileWatcher\temp\MAXYLD04.TXT',
2003, 'CJOHNSON', '', 2003]);
What do I seem to be doing wrong?
procedure TForm1.DoSomething;
begin
Edit1.Text := Format('%s /ai:%s "/path:%s" /importry:%d "/userid:%s" ' +
'"/password:%s" /reinyear:%d',
['' + 'DAS.EXE', 'leg',
'c:\Applications\eQuote\FileWatcher\temp\USSECTIO.TXT',
2003, 'CJOHNSON', '', 2003]);
end;
procedure TForm1.Button1Click(Sender: TObject);
begin
DoSomething;
end;
Works fine in D6. So, what does sPathToDAS contain?
John