🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.pascal.borland
Article #399

Re: function StringOf

#399
From: Maarten Bekers
Date: Mon, 28 Dec 1998 00:00
25 lines
1599 bytes
Hi,

> TheCostStr := stringof ('Cost of item ' , ItemNameStr , ' = ' ,
>  Price[ItemNumber] * Qty[ItemNumber] ) , '.');
> Any idea how to create a function that would allow such a parameter ?
I do not know what you want to do with it, but you cannot create a
procedure/function that will accept this yourself. However, you can
write yourself an textfile devicedriver (covered in the TP manual), and
then do something like:

Write(MyOwnDriver, 'Cost of item ', Itemnamestr, '.......'); etc...

You might also want to check out "Format" or "FormatStr" which can do
something like:

WriteLn(Format('Cost of item %d = %d.', [ItemNameStr, 1*2]);

etc..

Yours Sincerely,
   Maarten Bekers [author of EleBBS]

EMail        : elevator@wxs.nl
FidoNet      : 2:285/233.5
ICQ          : 11985619
Technical Details
Message-ID: <3687A0C6.176EE58@wxs.nl>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <763sl2$v0@enews2.newsguy.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111659,f9d88b35457e1f1d
X-Google-Attributes: gid111659,public
X-Google-Thread: 108ebd,f9d88b35457e1f1d
X-Google-Attributes: gid108ebd,public
From: Maarten Bekers <elevator@wxs.nl>
Subject: Re: function StringOf
Date: 1998/12/28
Message-ID: <3687A0C6.176EE58@wxs.nl>
X-Deja-AN: 426458355
Content-Transfer-Encoding: 7bit
References: <763sl2$v0@enews2.newsguy.com>
X-Accept-Language: en
Content-Type: text/plain; charset=us-ascii
X-Complaints-To: abuse@wxs.nl
X-Trace: reader1.wxs.nl 914858086 940 195.121.64.99 (28 Dec 1998 15:14:46 GMT)
Organization: The Elevator Software Productions
Mime-Version: 1.0
NNTP-Posting-Date: 28 Dec 1998 15:14:46 GMT
Newsgroups: comp.lang.pascal.borland,borland.public.turbopascal