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

Home » Public Forums » archive » Is there a way to find every variable in current session where the variable name contains a specific string?
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
Is there a way to find every variable in current session where the variable name contains a specific string? [message #78327] Fri, 11 November 2011 02:39
rjp23 is currently offline  rjp23
Messages: 97
Registered: June 2010
Member
I wondered if the above was possible in IDL 7. I have 2 datasets which
have a lot of variables associated with them and all the variables are
prefixed with for example dataset1_something and dataset2_something.

I know what all the "somethings" are so using EXECUTE to construct the
variable name from a string I can loop over all of these variables and
operate on them but it would be nicer if there was some way to
identify them without needing to know their names beforehand.

I suspect the answer is "no" but it'd be nice to be surprised ;-)

Cheers

Rob
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Range Keywords to Map Function Broken in IDL 8.1
Next Topic: Find the nearest location only on left/right side in SRCOR and MATCH_2D function

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

Current Time: Wed Oct 08 11:51:33 PDT 2025

Total time taken to generate the page: 0.00413 seconds