简体   繁体   中英

Ansi TStringList in Delphi XE for non-Unicode compatibility

I am trying to migrate DevExpress TdxDBGrid for Unicode applications and the lack of non-Unicode TStringList is the only obstacle for completing the migration. I have tried to use TAnsiStringList from JcLAnsiString (from Jedi/Jcl open source project) and while it works, it includes too many dependencies on Jedi/Jcl framework. Generally my plan is to use migrated TdxDBGrid for working with unicode data, but TAnsiStringList is required for internal actions - like storing bookmarks, selected rows and so on.

Is the more lightweight non-Unicode TStringList (with less dependencies)?

Not sure what functionality of TStringList you use, but you can try generic TList<AnsiString> instead of TStringList for your task. If the only reason to use AnsiString type instead of String is keeping internally some strings, maybe it will be enough.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM