Author Topic: JOIN  (Read 468 times)

Support

  • Administrator
  • *****
  • Posts: 21
    • View Profile
JOIN
« on: October 15, 2022, 01:16:37 am »
I was playing around with the JOIN() function and found it handy to convert an array of strings to a CSV string.

Code: Script BASIC
  1. s[0] = "zero"
  2. s[1] = "one"
  3. s[2] = "two"
  4. s[3] = "three"
  5.  
  6. PRINT "\"",JOIN("\",\"",s),"\"\n"
  7.  

"zero","one","two","three"