it might be useful to be able to retrieve the number of elements of the array inside the procedure.
it could be done with :
Code: Select all
Macro CountArray(array)
( PeekL( @array-8 ) )
EndMacro
example :
Code: Select all
Macro CountArray(array)
( PeekL( @array-8 ) )
EndMacro
Procedure MyProc(UserArray.l(1))
Protected nElement.l = CountArray(UserArray())
Debug nElement
EndProcedure
Dim test.l(123)
MyProc(test())