Recent

Author Topic: Strings, again!  (Read 603 times)

ezlage

  • Guest
Strings, again!
« on: April 08, 2020, 05:55:09 am »
Hello!

Does anyone have a single piece of code capable of properly deleting each position of any type of string, reference-counted or not?
« Last Edit: April 08, 2020, 06:00:29 am by ezlage »

Aidex

  • Jr. Member
  • **
  • Posts: 82
Re: Strings, again!
« Reply #1 on: April 08, 2020, 06:56:08 am »
I don't know the previous discussion, but the Delete() procedure respects the referencing, i.e. it automatically calls UniqueString().
If necessary, you can test if StringRefCount(s)=1.
Or do you want to change all referenced strings at once with a single Delete() call?

 

TinyPortal © 2005-2018