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

Home » Public Forums » archive » Re: Best way to share 'enum' between various functions
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: Best way to share 'enum' between various functions [message #77774] Mon, 26 September 2011 09:40 Go to previous message
Brian Wolven is currently offline  Brian Wolven
Messages: 94
Registered: May 2011
Member
Another method is to define a structure, each tag of which corresponds to one of the constant definitions you may need. You can write a function that simply defines the structure and returns it to the calling procedure. In use it would look something like this:

my_con = my_constants()

some_variable = my_con.maritime
other variable = my_con.urban

You can also easily "browse" your definitions:

help,/struct,my_constants()
[Message index]
 
Read Message
Read Message
Previous Topic: Re: Line plot with arrows
Next Topic: Re: Black background in IDL 8.1 map projections?

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

Current Time: Thu Oct 09 07:23:35 PDT 2025

Total time taken to generate the page: 1.59548 seconds