Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Declare an array type
#2
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
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
Reply


Messages In This Thread
Declare an array type - by baltasarq - 11-22-2024, 11:51 AM
RE: Declare an array type - by boriel - 11-22-2024, 09:27 PM
RE: Declare an array type - by baltasarq - 11-22-2024, 09:41 PM

Forum Jump:


Users browsing this thread: 2 Guest(s)