This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

converting an array to a string...

Is there an easy way to convert an array to a string? I am wanting to convert and array like {"This", "is", "an", "array"} to "This is an array". This would be similar to the str() or val() or recordtostring() functions but would work on an array.

I am sure it can be done with a a loop and a few strrep() statements but if there is a simplier way...
Parents
  • Verified Answer

    There is a rad function not generally documented called strraw

    Can be used like this......

    $L.message={"line 1", "line 2", "line 3", "etc"}

    $L.string.message=strraw($L.message)

    If you want carriage returns in your string you can use this.......

    $L.string.message=strraw($L.message, "newline")
Reply
  • Verified Answer

    There is a rad function not generally documented called strraw

    Can be used like this......

    $L.message={"line 1", "line 2", "line 3", "etc"}

    $L.string.message=strraw($L.message)

    If you want carriage returns in your string you can use this.......

    $L.string.message=strraw($L.message, "newline")
Children
No Data