Sign in Join

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

Mailing lists / fpc-pascal / 2000-11

Sring vs AnsiString

6 messages · 5 people · –

Reply by email Subscribe to this list Your subscription

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

Michael Van Canneyt
to Mirek Novak
Mirek Novak wrote
What's the difference - sorry for this question here, but I'm unable to read PDF under win2000 [CZ]

String is limited to 255 characters.
AnsiString is unlimited length and Reference counted;

  A:=B;

where a and B are ansistrings, will not copy the entire string, but will simply increase the reference count with 1

The compiler converts between the two transparently. Declaring a string
A : String;
will make A a string by default, and if {$H+} is on, A is an ansistring. A : Ansistring;
is always an ansistring
A : String[16];
is always a string, regardless of the {$H+} setting.

Michael.

Reply by email

Unknown author
to Mirek Novak: What's the difference - sorry for this question here, but I'm unable to read PDF under…

Date sent: Thu, 16 Nov 2000 09:21:50 +0100
From: Mirek Novak
To:
Subject: [fpc-pascal]Sring vs AnsiString
Send reply to:

What's the difference - sorry for this question here, but I'm unable to read PDF under win2000 [CZ]

Get yourself an operating system instead? ;-))) OK, just kidding, no flamewar intended. The question has been answered by Michael, I'd like just to add, that the documentation is available in other formats as well, not only PDF (although PDFs are definitely of the best quality among these formats). Other formats include HTML, plain text and LaTeX, so I'm sure you can find your own way to these should you need a more complete information about either ansistrings, or anything else in the future.

Have a nice day

Tomas Hajny, on Internet
in urgent cases

Reply by email

Lee, John

oops you used the h*** word- IMHO this is best form of docs! However, I suggest you turn off your computer for a few weeks & watch out for a flame from Michael...

Earlier message 31 lines
-----Original Message----- From: Sent: Thursday, November 16, 2000 07:27 To: Subject: Re: [fpc-pascal]Sring vs AnsiString Date sent: Thu, 16 Nov 2000 09:21:50 +0100 From: Mirek Novak To: Subject: [fpc-pascal]Sring vs AnsiString Send reply to: > What's the difference - sorry for this question here, but I'm unable > to read PDF under win2000 [CZ] Get yourself an operating system instead? ;-))) OK, just kidding, no flamewar intended. The question has been answered by Michael, I'd like just to add, that the documentation is available in other formats as well, not only PDF (although PDFs are definitely of the best quality among these formats). Other formats include HTML, plain text and LaTeX, so I'm sure you can find your own way to these should you need a more complete information about either ansistrings, or anything else in the future. Have a nice day Tomas Hajny, on Internet in urgent cases

Reply by email

Michael Van Canneyt
to Lee, John
John wrote
oops you used the h*** word- IMHO this is best form of docs! However, I suggest you turn off your computer for a few weeks & watch out for a flame from Michael...

FYI, I am documenting the FCL in a new tool that will generate high-quality HTML for on-line viewing as well as LaTeX for printing (and hence PDF and the like as well);

I recognize the need for online (i.e. HTML) docs; I just don't consider the current HTML docs as representative, and I won't consider any bugs in them.

If you're interested in the new 'style' of HTML docs, look at http://www.freepascal.org/docs-html/classes/index.html This is a preview only, and not the final version. (turn on CSS when reading them)

If we get the latex support working before the 1.0.4 release, we'll put in the FCL docs as well. But don't take that as a promise...

Michael.

Show quoted text 40 lines
-----Original Message----- From: Sent: Thursday, November 16, 2000 07:27 To: Subject: Re: [fpc-pascal]Sring vs AnsiString Date sent: Thu, 16 Nov 2000 09:21:50 +0100 From: Mirek Novak To: Subject: [fpc-pascal]Sring vs AnsiString Send reply to: > What's the difference - sorry for this question here, but I'm unable > to read PDF under win2000 [CZ] Get yourself an operating system instead? ;-))) OK, just kidding, no flamewar intended. The question has been answered by Michael, I'd like just to add, that the documentation is available in other formats as well, not only PDF (although PDFs are definitely of the best quality among these formats). Other formats include HTML, plain text and LaTeX, so I'm sure you can find your own way to these should you need a more complete information about either ansistrings, or anything else in the future. Have a nice day Tomas Hajny, on Internet in urgent cases _______________________________________________ fpc-pascal maillist - http://lists.freepascal.org/mailman/listinfo/fpc-pascal _______________________________________________ fpc-pascal maillist - http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply by email

Marco van de Voort
to Lee, John: oops you used the h*** word- IMHO this is best form of docs! However, I suggest you turn…
oops you used the h*** word- IMHO this is best form of docs!

HTML can be nice quickreference texts. But the fact that its look vary a lot depending on the browser *AND* printing is even more variable make it hard to create and real docs.

The PDF documents are superior in quality, and currently nearly every driver CD contains a copy of Acroread.

Since you obtain more that one driver CD, and maximally one Windows per computer, I dare to state that Acroread is more spread than a HTML browser :-)

Marco van de Voort ( or )

Reply by email