techknight Well-Known Member Licensed User Longtime User May 29, 2018 #1 I know this might seem steight forward but I have an array of length 2 that contains strings, but not sure how to return it from subroutine. Return arrayvariable gives me a an object converted to string error. And if I do Dim arrayreturn() as Array = Arraysub I get types do not match. any ideas? I think I am overlooking something.
I know this might seem steight forward but I have an array of length 2 that contains strings, but not sure how to return it from subroutine. Return arrayvariable gives me a an object converted to string error. And if I do Dim arrayreturn() as Array = Arraysub I get types do not match. any ideas? I think I am overlooking something.
LucaMs Expert Licensed User Longtime User May 29, 2018 #2 Sub Arraysub As String() Dim arrToBeReturned() As String ... Return arrToBeReturned End Sub Upvote 0
Erel B4X founder Staff member Licensed User Longtime User May 29, 2018 #3 Watch this video (from about 7:00): Upvote 0
techknight Well-Known Member Licensed User Longtime User May 29, 2018 #4 Ah. darn it. I forgot the paranthesis on the end of the sub. Figured it had to be something simple. Upvote 0