Recent

Author Topic: Delimited text - how find last index  (Read 1143 times)

n7800

  • Hero Member
  • *****
  • Posts: 683
  • Lazarus IDE contributor
    • GitLab profile
Re: Delimited text - how find last index
« Reply #15 on: April 17, 2026, 11:28:25 pm »
Code: Pascal  [Select][+][-]
  1.   MyList.StrictDelimiter := True; // Ensures only ',' splits

Unfortunately, "StrictDelimiter" doesn't guarantee this, things are more complicated due to the nuances of quotes and whitespace characters, see:
* https://forum.lazarus.freepascal.org/index.php?topic=73870
* https://gitlab.com/freepascal.org/fpc/source/-/work_items/37978

 

TinyPortal © 2005-2018