iKingBob New Member Aug 20, 2023 #1 I'm coding something like building a class of arrays and and a getArray sub with one parameter How do i set return type of this sub as array..? I've tried Public sub getArray(ArrName As String) As Array(of String ) Click to expand... End sub Click to expand... And it didn't work as it shows 'missing library reference error' Any help appreciated, thanks
I'm coding something like building a class of arrays and and a getArray sub with one parameter How do i set return type of this sub as array..? I've tried Public sub getArray(ArrName As String) As Array(of String ) Click to expand... End sub Click to expand... And it didn't work as it shows 'missing library reference error' Any help appreciated, thanks
Erel B4X founder Staff member Licensed User Longtime User Aug 20, 2023 #2 1. Please use [code]code here...[/code] tags when posting code. 2. Prefer Lists over arrays. 3. B4X: Public sub getArray(ArrName As String) As String() Upvote 0
1. Please use [code]code here...[/code] tags when posting code. 2. Prefer Lists over arrays. 3. B4X: Public sub getArray(ArrName As String) As String()
LucaMs Expert Licensed User Longtime User Aug 20, 2023 #3 Erel said: 1. Please use [code]code here...[/code] tags when posting code. 2. Prefer Lists over arrays. 3. B4X: Public sub getArray(ArrName As String) As String() Click to expand... Prefer GetArray, with uppercase, since with lowercase it is interpreted as property. Upvote 0
Erel said: 1. Please use [code]code here...[/code] tags when posting code. 2. Prefer Lists over arrays. 3. B4X: Public sub getArray(ArrName As String) As String() Click to expand... Prefer GetArray, with uppercase, since with lowercase it is interpreted as property.
LucaMs Expert Licensed User Longtime User Aug 20, 2023 #4 LucaMs said: Prefer GetArray, with uppercase, since with lowercase it is interpreted as a property. Click to expand... I really want to just disturb, I have a lot of anger (not against B4X, of course, in general) Upvote 0
LucaMs said: Prefer GetArray, with uppercase, since with lowercase it is interpreted as a property. Click to expand... I really want to just disturb, I have a lot of anger (not against B4X, of course, in general)