Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
AnsiString vs String Pascal
01-31-2010, 08:13 PM
Post: #1
AnsiString vs String Pascal
String is limited to 255 characters.
AnsiString is limit to the amount of memory you have.
Visit this user's website Find all posts by this user
Quote this message in a reply
01-31-2010, 09:23 PM (This post was last modified: 02-20-2010 07:28 PM by drdebcol.)
Post: #2
RE: AnsiString vs String Pascal
I knew about AnsiString, but i have never payed attention to that.
String is really limited as we can see.
Maybe it is time to pass on AnsiString.
THX for this !
Here are examples of usage :
Code:
program ansistring_test;
var
  s:ansistring;
begin
s:='this is ansistring';
writeln(s);
readln;
end.
Ordinary string is limited to 255 characters.

P.S. AnsiString is not standard in Turbo Pascal for Windows, but in Free Pascal IDE you can call it whenever you want.

There's a fine line between genius and insanity. I have erased this line.
Oscar Levant
There's a fine line between an administrator and black hat hacker. I have erased this line.
Dr DEBCOL
Visit this user's website Find all posts by this user
Quote this message in a reply
02-01-2010, 02:20 AM
Post: #3
RE: AnsiString vs String Pascal
anytime Smile
Visit this user's website Find all posts by this user
Quote this message in a reply
02-01-2010, 07:43 PM
Post: #4
RE: AnsiString vs String Pascal
TBH, limit of 255 charrs, and few pointers are pretty good solution for me, in pascal and competitive tasks Smile

Read rules Smile
[Image: legislator.png]
Find all posts by this user
Quote this message in a reply
02-02-2010, 02:04 AM
Post: #5
RE: AnsiString vs String Pascal
(02-01-2010 07:43 PM)l3g1sl4tor Wrote:  TBH, limit of 255 charrs, and few pointers are pretty good solution for me, in pascal and competitive tasks Smile

Yea, that is what AnsiString really is a dynamic pointer.
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


 Quick Theme: