11-22-2024, 09:27 PM
I think you mean passing an array as a parameter.
This is indeed a bit hidden in the docs: https://zxbasic.readthedocs.io/en/docs/byref/
The syntax is
Note that v() can be ANY array of strings of ANY dimensions. You'll have to use LBOUND and UBOUND to retrieve the dimensions of the array if you are expecting arrays of different dimensions.
This is indeed a bit hidden in the docs: https://zxbasic.readthedocs.io/en/docs/byref/
The syntax is
Code:
Sub doThis(v() as String)
...
End Sub
Note that v() can be ANY array of strings of ANY dimensions. You'll have to use LBOUND and UBOUND to retrieve the dimensions of the array if you are expecting arrays of different dimensions.
---
Boriel
Boriel