I have a method that creates a multidim string array, fills it with fancy stuff and returns it.
But Xojo complains about
MainWindow.SaveTree, line 20
Type mismatch error. Expected String(), but got String(,)
Return TreeArray
Declaration:
[code]Public Function SaveTree(TreeListBox as Listbox) as String()
Var TreeArray(1,3) As String
-doing things here-
Return TreeArray
End Function[/code]
Never had this error before…
-update-
Putting a comma in the ‘as String(,)’ fixes it…