I forgot how to convert an Array to a String

Here’s my code, and I am stuck on the last line: Convert an Array to display iots contents into a TextField:


// 2. Ask the user to choose a Master Book Folder (MBF)
Var MyData() As String

myData = a_Choose_Master

Break

// 3. Calls the Method to scan and report the MBF
TF.Text = myData.FromArr // (*)

(*) does not auto complete…

I found .ToString in the documentation, but it does not worked too, so I converted the project to API 2, Save As the project (different name), same result.
I then quit Xojo, run it back, load the new project (suffixed - 2025, so…) and checked to the same result.

I am wrong somewhere, but where ?

Or just use Join. It’s still there but it doesn’t autocomplete:

NewString = Join(array, delimiter)

Thank you Greg, your code do what I want.

PS: the parameters recalls me something :wink:
Join of course is meaningfull.

IIRC, the method you are looking for is a shared method on String:

NewString = String.FromArray(array, delimiter)

That is what I wanted to use, but it does not autocomplete and that stopped me, I searched the documentation using various text without success (even Array), but I may have not see something that is already there (it happened to me in the past)…
So I take my lunch, come back and still not found what I was searching.

Thanks again.

PS: I am anemic, and this is one of the symptoms (apparently).

Sorry to hear that, hope you’re feeling better soon.

I have medications; I do not know how many time this will takes.