You are not logged in.
Hi Arnaud, today i had the Problem that i get a variant of type varUString from another component. (They changed the var Type from varString to varUString)
till today i used your VariantStringToUtf8 !
I think both types are strings should VariantStringToUtf8 not convert both Var - Types ? (Or are there even more ?)
as workaround i use: StringToUtf8(VarToStrDef(AValue, '')));
Last edited by itSDS (Today 09:34:55)
Rad Studio 12.3 Athens / 13.0 Ganymede
Offline
VariantStringToUtf8 is the exact reverse of RawUtf8ToVariant. It converts Variant of type varString where VString points to RawUtf8 (instead of AnsiString) to RawUtf8.
Use VariantToUtf8 instead if you need to convert numbers or other strings.
Offline