10-07-2003, 12:20 PM
Quote:red_marvin: remember to add back in the separator
What do you mean?
something like:
Code:
FUNCTION implode(string_array(),separator)
DIM st$=""
FOR n = LBOUND(string_array()) TO UBOUND(string_array())
st$=st$+string_array(n)
IF n<>UBOUND(string_array$) THEN st$=st$+chr$(separator) '<<==
NEXT
implode=st$
END FUNCTION
...or just the fact that I forgot to return the string value
-> implode=str$
?
Well I modified for both...