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 
Return to the default flat view Create a new topic Submit Reply
Re: StrSplit wont port to Windows? [message #29184] Thu, 07 February 2002 08:57 Go to previous message
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
[Message index]
 
Read Message
Read Message
Read Message
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 14:20:34 PDT 2025

Total time taken to generate the page: 0.00441 seconds