🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

function StringOf

#392
From: Quality
Date: Sat, 26 Dec 1998 00:00
11 lines
1086 bytes
In another Pascal there was a function that I would like to recreate:

function StringOf ( ** SPECIAL ** ) : string;

The SPECIAL part was a parameter that was virtually identical to the
parameter used by writeln(). That is to say that the following worked:

TheCostStr := stringof ('Cost of item ' , ItemNameStr , ' = ' ,
 Price[ItemNumber] * Qty[ItemNumber] ) , '.');

Any idea how to create a function that would allow such a parameter ?
Technical Details
Message-ID: <763sl2$v0@enews2.newsguy.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111659,f9d88b35457e1f1d,start
X-Google-Attributes: gid111659,public
X-Google-Thread: 10261c,f9d88b35457e1f1d,start
X-Google-Attributes: gid10261c,public
X-Google-Thread: 108ebd,f9d88b35457e1f1d,start
X-Google-Attributes: gid108ebd,public
From: "Quality" <quality@annex.com>
Subject: function StringOf
Date: 1998/12/26
Message-ID: <763sl2$v0@enews2.newsguy.com>
X-Deja-AN: 426040427
Organization: http://extra.newsguy.com
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3155.0
Newsgroups: comp.lang.pascal.borland,borland.public.turbopascal,comp.lang.pascal.misc