comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » str_sep bug
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
str_sep bug [message #7521] Mon, 25 November 1996 00:00
Phil Williams is currently offline  Phil Williams
Messages: 78
Registered: April 1996
Member
I think that I have found a bug in the str_sep.pro function. Observe
the following:

IDL> t = 'apples, oranges, peaches'
IDL> print,str_sep(t,',')
apples oranges , peaches
IDL> print,str_sep(t,', ')
apples oranges nges, peaches

It appears that the last element is messed up when you add the space to
the separator it fails on the last element.

Any help would be appreciated.

Phil
--
/*********************************************************** ********/
Phil Williams, Ph.D.
Research Instructor
Children's Hospital Medical Center "One man gathers what
Imaging Research Center another man spills..."
3333 Burnet Ave. -The Grateful Dead
Cincinnati, OH 45229
email: williams@irc.chmcc.org
URL: http://scuttle.chmcc.org/~williams/
/*********************************************************** ********/
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: PV-Wave Postscript question
Next Topic: External link to 32bit DLL

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Thu Oct 09 20:31:16 PDT 2025

Total time taken to generate the page: 1.76179 seconds