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.

Hi,

I've got a multi dimensional array of strings (terrainArray) that I need to pass to a function (loadMaps)

e.g.;

global terrainArray:String[28,28]
loadMaps("map.file",terrainArray)

for the loadmaps function declaration I'm not sure how to define the variable type

e.g.;

function loadMaps(mapFile:string, mapArray:????)

should it be a string[,]?