Hi,
Can a blitz array be passed as an argument?
eg.
local my_data$[2]
my_data[0]="Fred"
my_data[1]="Wilma"
my_data[2]="Barney"
add_surname( my_data )
Function add_surname( b_arr )
b_arr[0]=b_arr[0]+" Flintstone"
....etc
End Function
Obviously the above does not work but it gets across the idea of what I want to do.
As I type I hear cries of object and handle in the distance but what the hell, I'm feeling lazy so I'm going to ask..
- Luke
Can a blitz array be passed as an argument?
eg.
local my_data$[2]
my_data[0]="Fred"
my_data[1]="Wilma"
my_data[2]="Barney"
add_surname( my_data )
Function add_surname( b_arr )
b_arr[0]=b_arr[0]+" Flintstone"
....etc
End Function
Obviously the above does not work but it gets across the idea of what I want to do.
As I type I hear cries of object and handle in the distance but what the hell, I'm feeling lazy so I'm going to ask..
- Luke