On 17/05/2011 08:40, Harry Pillow wrote:
> I have a fairly large Pascal program written about 15 years ago. It
> uses Tools Plus. It is a croquet game. Can I make use of FPC and how
> do I get it.
Go to the website, follow the "Download" link and install FPC for your
platform.
http://www.freep
I have a fairly large Pascal program written about 15 years ago. It uses Tools
Plus. It is a croquet game. Can I make use of FPC and how do I get it.
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listin
Rainer Stratmann:
> Alternatively you can make a class or an object with the
> text variable in it.
But if you need to work with only one file, you can get rid
of a global variable in the main module by just extracting
the relevant functions and the file handle into a separate
unit:
-
On 5/15/11 8:28 PM, John Lee wrote:
I'd like to put the assign and reset of a text file into a function,
and then use the function to return a line from the file, without
needing to close the file then re assign and reset every time (for
performance reasons) - see below for my attempt.
This
Am Monday 16 May 2011 12:28:19 schrieb johnelee1...@googlemail.com:
> thanks all - btw it wasn't the real code just an example I made up , the
> while loop wasn't needed- mistake!
>
> But the q still remains - having three functions would still give the
> problem I have now- that when doing a file_
On Mon, 16 May 2011 10:28:19 +, johnelee1...@googlemail.com
wrote:
> thanks all - btw it wasn't the real code just an example I
made up , the while loop wasn't needed- mistake!
>
>But the q still
remains - having three functions would still give the problem I have
now- that when doing a f
thanks all - btw it wasn't the real code just an example I made up , the
while loop wasn't needed- mistake!
But the q still remains - having three functions would still give the
problem I have now- that when doing a file_read (my function flag=1) would
say 'file not open' because the handle
In my eyes it is (very) unlogic.
Why don't you make 3 functions?
Something like this...
var filename : string; // global var for storing the filename
function file_reset( name : string ) : boolean;
function file_read( var eof : boolean ) : string;
function file_close : boolean;
Whith your examp
On Mon, 16 May 2011, Burkhard Carstens wrote:
Am Donnerstag, 6. Januar 2011 00:12 schrieb Michael Van Canneyt:
Hello,
For those of you that need JSON support:
I have committed support for streaming published properties
(properties for which RTTI is generated) from objects to
JSON and vice