Op 2010-10-21 08:17, Felipe Monteiro de Carvalho het geskryf:
> On Thu, Oct 21, 2010 at 1:41 AM, Zaher Dirkey <parm...@gmail.com> wrote:
>> How to get the real length of WideString variable.
> 
> Length in which unit? WideChars (2 bytes each) or Bytes?
> 
> Length() returns the amount of WideChars AFAIK
> 


Length() returns number of bytes, not number of characters. The incorrect
assumption was made back in Delphi (before unicode support).




Regards,
  - Graeme -

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

_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to