how to pass a string array to a function?

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

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

What happens when you try?
Believe me your machine won't explode if you try it and get it wrong.
Just in case it does :
Global terrainArray:String[28,28]
terrainarray[0,0]="Hello"
terrainarray[0,1]="World!"
loadMaps("map.file",terrainArray)
Function loadMaps(mapFile:String, mapArray:String[,])
	Print maparray[0,0] + " " + maparray[0,1]
End Function

Works for me.