Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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)?

like image 458
TomR Avatar asked Dec 18 '25 21:12

TomR


1 Answers

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.

like image 145
Andrei Galatyn Avatar answered Dec 21 '25 12:12

Andrei Galatyn



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!