[fpc-pascal] Checking if a TStringList already exists
James Richters
james at productionautomation.net
Mon May 20 13:53:11 CEST 2019
I’m wondering if there is a way to test if a tstringlinst has been created yet?
I looked at the documentation in these two locations:
https://lazarus-ccr.sourceforge.io/docs/rtl/classes/tstringlist.html
and
https://lazarus-ccr.sourceforge.io/docs/rtl/classes/tstrings.html
but they do not show things like the .Create or .Free procedures, so I am thinking .Create and .Free are some kind of fundamental procedures that are used by generally everything in ‘classes’ maybe so if there was some function that would tell me if the TStringList existed, it would be in with .Create and .Free…. But I’m not sure where that would be documented.
Also can someone explain that the purpose of .Destroy is and why I would use .Free Vs .Destroy ?
James
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20190520/d1822d35/attachment.html>
More information about the fpc-pascal
mailing list