Recent

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

ezlage

  • Sr. Member
  • ****
  • Posts: 317
  • (Silêncio)
    • Lageteck
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 »
Sorry by my poor english.

Atenciosamente,

Ezequiel Lage
ezequiel@lageteck.com

https://github.com/ezlage

Aidex

  • New Member
  • *
  • Posts: 48
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