<p>Am 15.01.2014 17:19 schrieb "Michael Schnell" <<a href="mailto:mschnell@lumino.de">mschnell@lumino.de</a>>:<br>
><br>
> DXE Strings again :-) ,<br>
><br>
> What is the relation between Generic Functions and (static) DXE String encoding schemes ?<br>
><br>
> Can you (e.g.) do a (silly) Generic Function that takes two strings of any (but identical) encoding type, concatenates them and outputs the result in the same (static) encoding type, so that you can call the beast to handle the encoding type specified by the caller from "outside" (e.g. in another unit) without unnecessary conversions.</p>

<p>Why would you want such a function? If the two strings have the same encoding and the destination is a string variable of the same static encoding then there won't be any conversions anyway.</p>
<p>> Could a single "Generic TStringlist" be done that way to allow for storing and retrieving Strings of any - but ubiquitous - (static) encoding Type ?</p>
<p>And then? If you want to use them in e.g. a class you need to pick a specialization and thus a code page at compile time. </p>
<p>Regards,<br>
Sven</p>