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

 

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

Reply via email to