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

Home » Public Forums » archive » Re: StrSplit wont port to Windows?
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
Re: StrSplit wont port to Windows? [message #29184] Thu, 07 February 2002 08:57
Rick Towler is currently offline  Rick Towler
Messages: 821
Registered: August 1998
Senior Member
> RA> Does anyone know why StrSplit will not port to
> RA> windows IDL.
>
> Are your trying to split a file path? The path separator is different
> between Windows and Unix. I can see no other reason why it should not
> work under Windows.
>
> - Carsten

Like Carsten said, if you are splitting a path, try something like so:

parameter_file = 'C:\my\path\to\file.txt'
parts = strsplit(parameter_file, '\:/', /extract)

It should parse your file paths on Unix, windows and I think Mac. You
probably just have to change '/' to '\:/'.

-Rick
Re: StrSplit wont port to Windows? [message #29186 is a reply to message #29184] Thu, 07 February 2002 08:02 Go to previous message
dominik is currently offline  dominik
Messages: 47
Registered: June 2000
Member
>>>> > "RA" == R A <roa@aber.ac.uk> writes:

RA> Does anyone know why StrSplit will not port to
RA> windows IDL.

Are your trying to split a file path? The path separator is different
between Windows and Unix. I can see no other reason why it should not
work under Windows.

- Carsten


RA> thanks
RA> roa@aber.ac.uk
Re: StrSplit wont port to Windows? [message #29189 is a reply to message #29186] Thu, 07 February 2002 07:38 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
R.A (roa@aber.ac.uk) writes:

> Does anyone know why StrSplit will not port to
> windows IDL.

You will have to be more specific here. StrSplit
seems to work perfectly on my Windows machine.

Cheers,

David

--
David W. Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438, E-mail: david@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: IDL crashes using CONTAINSPOINTS (not any more)
Next Topic: Re: Fast shear

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

Current Time: Wed Oct 08 17:30:21 PDT 2025

Total time taken to generate the page: 0.00625 seconds