subhalaxmi
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-03-2015
09:41 PM
Parse String Array
Hi Guys
Can you help me.
how can I parse a string array which is coming from server.
How can I show it like One Two Three
Can you help me.
how can I parse a string array which is coming from server.
["One","Two","Three"]
How can I show it like One Two Three
1 REPLY 1

Komag
Roku Guru
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2015
02:39 AM
Re: Parse String Array
bigString = ""
FOR EACH string IN myArray
bigString = bigString + string + " "
END FOR
bigString = Left(bigString, (Len(bigString) - 1) ) ' Keep all but the last space
If you want them in order:
bigString = ""
FOR i = 0 TO myArray.Count() -1
string = myArray[i]
bigString = bigString + string + " "
END FOR
bigString = Left(bigString, (Len(bigString) - 1) ) ' Keep all but the last space
And bigString.Trim() might do the trick of clearing the last space instead of using Left()