how to pass a string array to a function?

BlitzMax Forums/BlitzMax Beginners Area/how to pass a string array to a function?

Actually after looking at your answer again I'm not sure it will work in my scenario, as I'm using the function to populate the array - so when I pass in the array it's empty.

Global terrainArray:String[28,28]
loadMaps("map.file",terrainArray)
Print terrainarray[0,1] + " " + terrainarray[0,0]
Function loadMaps(mapFile:String, mapArray:String[,])
	maparray[0,0]="Hello"
	maparray[0,1]="World!"
	Print maparray[0,0] + " " + maparray[0,1]
End Function