Converts 1-dimension array into text.
Meet Join. A way to convert array into list of strings.
Opposite of Split that I use a lot in my tools.
How can I start utilizing it? I have no idea, this is at least a start.
Todo: Add ability to have string separator to return string, needs more work
Function Arr_1Dim_2Str(OneDimArray)
' Converts array into list of string
Arr_1Dim_2Str = join(OneDimArray)
End function
' Original snippet
' Array Join
' Dim OneDimArray(4)
' OneDimArray(0) = "Hello,"
' OneDimArray(1) = "It's"
' OneDimArray(2) = "Me"
' OneDimArray(3) = "BoldCodes!"
'' Dim strSentence
' strSentence = join(OneDimArray)
' Response.Write strSentence
' Converts array into list of string
Arr_1Dim_2Str = join(OneDimArray)
End function
' Original snippet
' Array Join
' Dim OneDimArray(4)
' OneDimArray(0) = "Hello,"
' OneDimArray(1) = "It's"
' OneDimArray(2) = "Me"
' OneDimArray(3) = "BoldCodes!"
'' Dim strSentence
' strSentence = join(OneDimArray)
' Response.Write strSentence
OneDimArray
Views 166
Downloads 73
CodeID
DB ID
ANmarAmdeen
615
Revisions
v1.0
Tuesday
March
12
2024