11-15-2022, 07:18 PM
Remove the parenthesis from around args.
It's a long standing glitch with arrays, and one that just happens to be a real PITA to track down and sort out.
Code: (Select All)
declare sub main
declare sub get_numeric_args(args() as double)
DIM args(4) AS DOUBLE
get_numeric_args args()
PRINT args(1)
SUB get_numeric_args (args() AS DOUBLE)
args(1) = 123
END SUB
It's a long standing glitch with arrays, and one that just happens to be a real PITA to track down and sort out.