[fpc-devel] TField.AsString and Databases with UTF-8 charset

Graeme Geldenhuys graemeg at opensoft.homeip.net
Fri Jul 24 18:35:32 CEST 2009


Marco van de Voort wrote:
>> TField.Size is the declared size in characters.
> 
> The question is if it still does in D2009. I doubt it. I think it is
> encoding-base unit. (1 or 2)


I do not have D2009, but the D2009 online help clearly states that the Size property is in characters for string type fields.

TField.Size, and then read about ftString:
http://docs.embarcadero.com/products/rad_studio/delphiAndcpp2009/HelpUpdate2/EN/html/delphivclwin32/DB_TField_Size.html

TField.DataSize:
http://docs.embarcadero.com/products/rad_studio/delphiAndcpp2009/HelpUpdate2/EN/html/delphivclwin32/DB_TField_DataSize.html

 
Regards,
 - Graeme -

________________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/




More information about the fpc-devel mailing list