Bug or misunderstanding: for _dummy in [string1, string2] do lazarus / 21-General ---------------------------------------------------------------------- lopiuh · 2022-07-16 11:57 Hi, I want to iterate through a couple of strings. If i do: Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i for _path in [CST_CurrencyPath, CST_SecurityPath] do the length of the string in _path gets cut to the length of the first string (CST_CurrencyPath) example CST_CurrencyPath = '/mnt/data/_sortin/Delphi/Currency/'; CST_SecurityPath = '/mnt/data/_sortin/Delphi/Stock1234567data/';   in the first iteration of the loop _path is "/mnt/data/_sortin/Delphi/Currency/" (fine) in the secons iteration path is "/mnt/data/_sortin/Delphi/Stock1234" and not "/mnt/data/_sortin/Delphi/Stock1234567data/". Is this a feature or a bug? Thanks lopiuh ---------------------------------------------------------------------- Martin_fr · 2022-07-16 12:17 IIRC its a bug and it got fixed a while ago, but hasn't yet made it into any release. (Similar issue happened with float (single vs double or the like)) I don't know if the fix will be in 3.2.4 or only 3.4.0. ---------------------------------------------------------------------- lopiuh · 2022-07-16 12:28 Quote from: Martin_fr on July 16, 2022, 02:17:27 pmIIRC its a bug and it got fixed a while ago, but hasn't yet made it into any release. (Similar issue happened with float (single vs double or the like)) I don't know if the fix will be in 3.2.4 or only 3.4.0. Thanks!! ---------------------------------------------------------------------- PascalDragon · 2022-07-16 14:39 Quote from: Martin_fr on July 16, 2022, 02:17:27 pmI don't know if the fix will be in 3.2.4 or only 3.4.0. The fix was merged back to 3.2.3 shortly after it was done so it will be in 3.2.4.