[fpc-devel] SetLength() vs := ''

Graeme Geldenhuys graemeg.lists at gmail.com
Fri Nov 9 11:44:36 CET 2007


Hi,

Is SetLength(StringVar, 0);       faster than     StringVar := '';       ?


I see quite a bit of code in fpdoc use SetLength() rather than := ''
so I just wondered...


Regards,
  - Graeme -


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



More information about the fpc-devel mailing list