I want to create a record type that is global to my application. Is this possible and what is the syntax? This way I can pass a variable that is the record type between procedures rather then having to pass a large list of parameters.
You should, as a general rule, avoid global variables and structures. One way in which you could do this which would sensibly maintain persistent state would be to have a parameter table with a published interface of get_ and set_ functions in a discrete package to maintain this table's setting.
Have you thought about putting the procedures into a package and then declaring the datastructure within that package. That way they could both easily declare private vars of that type and if you wnated to change the definition you would only have to do it one place.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.