B4J Question Pass a String Array to a Class

JaunLukePicard

Member
Licensed User
Longtime User
With a String array defined as the following:

Dim str() as String = Array of String("1", "2", "3") in the main class.

How would I pass this String array to a Class Module?

My Example: Public sub subFunction(str() as String)
....
....
End Sub

Do I have to indicate the same number of elements for the string in the Class I want to pass the String array to? I don't think so.

Or should I use a List?
Do I need to define a String array to pass the array from the calling module/class?
 

JaunLukePicard

Member
Licensed User
Longtime User
Got it Erel.

The reason I got the coding wrong was that I was adding an extra set of parens while passing the array of strings. Thank you
 
Upvote 0
Top