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

Home » Public Forums » archive » Re: variables in common blocks
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: variables in common blocks [message #53878 is a reply to message #53877] Fri, 04 May 2007 07:06 Go to previous messageGo to previous message
lasse is currently offline  lasse
Messages: 48
Registered: February 2007
Member
On 4 May, 14:45, David Fanning <n...@dfanning.com> wrote:
> Lasse Clausen writes:
>> al long time ago, somebody asked the following question in this
>> newsgroup but never got an answer. I was wondering if any of you knew:
>
>>> Date: 1995/05/16
>>> Subject: Common blocks revisited...
>
>>> 1) Is there a way to list only variables in a common block?
>
>>> 2) Is there a way to list the currently defined common blocks?
>
> Having spent a couple of weeks trying to deconvolve a program
> with Common blocks, I can understand why someone might
> want something like this, but I'm afraid adding the capability
> would only encourage this kind of nonsense. :-)
>
> Cheers,
>
> David
> --
> David Fanning, Ph.D.
> Fanning Software Consulting, Inc.
> Coyote's Guide to IDL Programming:http://www.dfanning.com/
> Sepore ma de ni thui. ("Perhaps thou speakest truth.")

I won't be drawn into a discussion whether COMMON blocks are a good
things or not.

And anyway, I found out that you can list all variables using

help, names='*', output=out

For common block variables the output string contains the name of the
common block in brackets, hence the functionality I would like to have
is easily achieved by parsing through the output.

Ha!

Cheers
Lasse
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: limited angle CT
Next Topic: IDL number output format problem?

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

Current Time: Sun Oct 12 13:25:36 PDT 2025

Total time taken to generate the page: 1.99958 seconds