Delphi evolution of different versions of string types

Source: Internet
Author: User

string,delphi2009 Previous version string=ansistring, one character for one byte, DELPHI2009 and above version string=unicodestring, one character accounted for two bytes.

char,delphi2009 Previous version Char=ansichar, one byte, DELPHI2009 and later Char=widechar, two bytes.

Widestring, a character accounting for two bytes, all versions of Delphi are supported, but Firemonkey-based apps are not supported.

Olevariant,delphi all editions are supported, and Firemonkey-based apps are supported.

If the DATASNAP middleware is to support DELPHI6, DELPHI XE-developed desktop client calls, the string is best used with the widestring type.

If the Datasnap intermediate supports both DELPHI6, DELPHI XE-developed desktop client calls and support for Firemonkey-based app calls, it is best to use the Olevariant type for strings.

Strings are best used with string types if they are only for client calls developed by DELPHI2009 and later.

Delphi evolution of different versions of string types

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.