Finding if a structure tag name is defined? [message #36709] |
Tue, 14 October 2003 05:28  |
wmconnolley
Messages: 106 Registered: November 2000
|
Senior Member |
|
|
I want to know if a given keyword has been passed down via _extra, so
I said "if (n_elements(e.c_linestyle) ne 0)" which of course doesn't
work because if it isn't there you can't say e.linestyle (bring on
perl...). I can use tag names to get all the tags, then search through
for a match, but that seems silly and ugly. What is the correct way
to find if a given structure has a certain tag in it? (And why
couldn't I find the answer buried within DF's site ;-)?
-W.
--
William M Connolley | wmc@bas.ac.uk | http://www.antarctica.ac.uk/met/wmc/
Climate Modeller, British Antarctic Survey | Disclaimer: I speak for myself
I'm a .signature virus! copy me into your .signature file & help me spread!
|
|
|
|
|