Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2000-09

Re: (no subject)

3 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Petr Titera

-----Original Message-----

Earlier message 17 lines
From: Florian Klaempfl To: Date: 21. zari 2000 13:27 Subject: Re: [fpc-pascal](no subject) >> >Can you please give an example which doesn't compile? It works ... I apologize. I had another bug in my program... BTW: how to pass const AnsiString parameter do BlockWrite ? Will something as blockwrite(file, par, count) suffice? Petr Titera
Michael Van Canneyt
to Petr Titera
Petr Titera wrote 17 lines
-----Original Message----- From: Florian Klaempfl To: Date: 21. zari 2000 13:27 Subject: Re: [fpc-pascal](no subject) >> >Can you please give an example which doesn't compile? It works ... I apologize. I had another bug in my program... BTW: how to pass const AnsiString parameter do BlockWrite ? Will something as blockwrite(file, par, count) suffice?

No, you must do a

  BlockWrite(File,Pointer(Par)^,Length(Par));

Michael.

Show quoted text 11 lines
Petr Titera _______________________________________________ fpc-pascal maillist - http://lists.freepascal.org/mailman/listinfo/fpc-pascal