06-19-2022, 04:18 PM
Unfortunately a lot of cases involving pass-by-value don't work correctly. The specific one you ran into I made a GitHub issue about a couple days ago:
https://github.com/QB64-Phoenix-Edition/...issues/118
https://github.com/QB64-Phoenix-Edition/...issues/118