Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Funny thing happened on the way to the Format...

0 views
Skip to first unread message

Eddie Shipman

unread,
Aug 11, 2003, 2:27:26 PM8/11/03
to
I'm trying to get this format to work but keep getting Illegal Expression
errors:

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?

John Elrick

unread,
Aug 11, 2003, 4:25:42 PM8/11/03
to

"Eddie Shipman" <eshipman_remov...@flyaustin.rr.com> wrote in
message news:MPG.19a19c08e...@forums.borland.com...

> I'm trying to get this format to work but keep getting Illegal Expression
> errors:
>
> 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]);

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

0 new messages