Delphi Conversion Unicode Issues

前端 未结 6 1825
终归单人心
终归单人心 2020-11-28 23:53

We have large commercial app that we want to convert from Delphi 6 to 2010. Approx 10 3rd party component sets, all with source code... I have heard warnings about Unicode

6条回答
  •  孤城傲影
    2020-11-29 00:46

    Another point to take care of, is the usage of Variant types with strings and the VarType function testing for strings: one needs to use varUString instead of varString.

    Assuming AValue is of type Variant and has being assigned a Unicode string value, the following won't work:

      if VarType(AValue) = varString then ...
    

    and needs to be changed to

      if VarType(AValue) = varUString then ...
    

提交回复
热议问题