Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Idl-pvware > Re: IDL Workben...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 7 of 7 Topic 5561 of 6457
Post > Topic >>

Re: IDL Workbench Path Woes

by Spon <christoph.blau@[EMAIL PROTECTED] > Apr 2, 2008 at 10:30 AM

On Apr 2, 6:21 pm, Spon <christoph.b...@[EMAIL PROTECTED]
> wrote:
> On Apr 2, 5:34 pm, David Fanning <n...@[EMAIL PROTECTED]
> wrote:
>
>
>
> > Spon writes:
> > > As I'm currently in the grip of evangelical fervour induced by a
> > > re-reading of JD Smith's (in)famous oration -
> > >http://www.dfanning.com/tips/forloops.html-I've
discovered that you
> > > can replace the FOR loop by using TRANSPOSE; like this:
>
> > > Print, Transpose(StrSplit(!PATH, Path_Sep(/SEARCH_PATH), /Extract))
>
> > JD, of course, is famous, but hardly anyone reads (well,
> > finishes) his articles. I, on the other hand, am not
> > famous at all, but a lot of people have read the nonsense
> > I've written. The difference between us is the
> > energy differential given off by the human brain when
> > they read a line of code like that compared to my humble
> > PrintPath program. :-)
>
> > Cheers,
>
> > David
> > --
> > David Fanning, Ph.D.
> > Fanning Software Consulting, Inc.
> > Coyote's Guide to IDL Programming (www.dfanning.com)
> > Se****e ma de ni thui. ("Perhaps thou speakest truth.")
>
> Butbutbut...
>
> theSeparator = Path_Sep(/SEARCH_PATH)
> theStringArray = (!Path, theSeparator, /EXTRACT)
> theStringColumnArray = Transpose(theStringArray)
> Print, theStringColumnArray
>
> ...and suddenly you'd be hard pushed to spot JD's influence at all ;-)
>
> I think you're selling yourself short, David!
>
> Chris

Grr... this is what I get for being a smart alec I guess.
This:
> theStringArray = (!Path, theSeparator, /EXTRACT)

Should of course read:
theStringArray = StrSplit(!Path, theSeparator, /EXTRACT)

:-(
 




 7 Posts in Topic:
IDL Workbench Path Woes
David Fanning <news@[E  2008-03-21 17:04:49 
Re: IDL Workbench Path Woes
David Fanning <news@[E  2008-03-21 17:09:38 
Re: IDL Workbench Path Woes
Spon <christoph.blau@[  2008-04-02 09:13:45 
Re: IDL Workbench Path Woes
David Fanning <news@[E  2008-04-02 10:34:13 
Re: IDL Workbench Path Woes
Spon <christoph.blau@[  2008-04-02 10:17:16 
Re: IDL Workbench Path Woes
Spon <christoph.blau@[  2008-04-02 10:21:39 
Re: IDL Workbench Path Woes
Spon <christoph.blau@[  2008-04-02 10:30:53 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Wed Dec 3 20:49:21 CST 2008.