Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need to put more than 255 caracthers in a string

Status
Not open for further replies.

ivoestg

Programmer
Mar 21, 2001
77
0
0
PT
Hi,
I need to put about 2480 characthers in a string... is this possible... i have tried .. AnsiString, and WideString... but no success.

Thanks thanks...

I'm in ivoestg@yahoo.com
 
To my knowledge a Ansi Long string should be able to hold an unlimited number of charachters up to your available memory.
 
From Delphi help:
"AnsiString ~2^31 characters (4 bytes to 2GB);
WideString ~2^30 characters (4 bytes to 2GB)"

--- markus
 
Check to make sure you don't have compiler directive {$H-} which turns

s : string;

into a 255 character string declaration. Default is {$H+} which makes it an AnsiString as McMerfy shows above.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top