Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
explode() and implode()
#11
Quote:red_marvin: remember to add back in the separator Wink

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...
/post]
Reply


Messages In This Thread
explode() and implode() - by oracle - 10-04-2003, 07:12 AM
explode() and implode() - by Ninkazu - 10-04-2003, 09:05 AM
explode() and implode() - by Blitz - 10-05-2003, 10:24 PM
explode() and implode() - by seph - 10-05-2003, 10:33 PM
explode() and implode() - by seph - 10-05-2003, 10:37 PM
explode() and implode() - by xhantt - 10-05-2003, 11:55 PM
explode() and implode() - by red_Marvin - 10-06-2003, 12:14 AM
explode() and implode() - by oracle - 10-06-2003, 04:02 AM
explode() and implode() - by SCM - 10-07-2003, 10:39 AM
explode() and implode() - by oracle - 10-07-2003, 10:44 AM
explode() and implode() - by red_Marvin - 10-07-2003, 12:20 PM
explode() and implode() - by toonski84 - 10-07-2003, 07:56 PM
explode() and implode() - by oracle - 10-08-2003, 12:53 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)