Hi Snood1,
There are several ways to pass containers to and from code modules, one
of which is the same method you are currently employing.
I've found an old discussion forum that still is relevant to your question - you can find it here:
http://forums.ni.com/ni/board/message?board.id=270&message.id=1001&requireLogin=False
Hope this helps! If you have more questions feel free to let us know.
Have a good one Snood1,
Dan Weiland