local array in a function

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

Nicstt(Posted 2006) [#1]
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?:)


Shambler(Posted 2006) [#2]
Yes you can, it's as simple as


blah()

Function blah()

Local stringarray$[50]

stringarray[2]="hello"

Print stringarray[2]

End Function 



Nicstt(Posted 2006) [#3]
hmmm doesnt work for me

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


Nicstt(Posted 2006) [#4]
Thx for that Shambler, never occured to me to try it.