local array in a function

Blitz3D Forums/Blitz3D Beginners Area/local array in a function

I know its possible to have a local integer array in a function.

What im wondering if is its possible to have a local string array in a function, cant seem to find a way myself.

Anyone know?:)

Yes you can, it's as simple as


blah()

Function blah()

Local stringarray$[50]

stringarray[2]="hello"

Print stringarray[2]

End Function 


hmmm doesnt work for me

Edit: no matter, have to leave the $ off after dimensioning

Thx for that Shambler, never occured to me to try it.