ShortString VS Ansistring

hi Guys,

i am looking for the advantages for using shortstring vs ansistring (and all the negatives that goes along with that).

can someone maybe help / give guidelines if possible.

regards

Comments

  • : hi Guys,
    :
    : i am looking for the advantages for using shortstring vs ansistring
    : (and all the negatives that goes along with that).
    :
    : can someone maybe help / give guidelines if possible.
    :
    : regards
    Shortstrings can only hold 255 ASCII symbols, while ansistring can hold up to 2 Billion (2,000,000,000) characters in the ANSI charset. Ansi strings are also dynamic, where shortstrings are defined as array[0..255] of char.
    As far as differences in coding: there are none.
    It is advicable to use ansistring, unless your code needs to be compatible with DOS.
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

In this Discussion