ERROR: index expression complexity [..]
function which_index(string p1, int p2) as int
return 5 ' just as an example
end function
string fff[10]
fff[which_index("something", 5)] = "Hello fff"
I'm going to give it a try in SB for fun.
Apparently i dont know how to pass an array of strings. And i cant find any examples to do it...
'[]' indicates whole array passed byref
'
'function f(byref s as string [])
'function f(byref s as string ptr)
'function f(s as string ptr)
function f(s as string [])
'function f(string s[])
======================
print s[1] s[2] s[3] s[4]
s[3]="c"
end function
f(s)
print s[1] s[2] s[3] s[4]