Home »
Public Forums »
archive »
Is there a way to find every variable in current session where the variable name contains a specific string?
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
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
|
|
|
Current Time: Wed Oct 08 09:22:31 PDT 2025
Total time taken to generate the page: 0.01272 seconds