On Apr 4, 2007, at 9:09 PM, Tim Jones wrote:

> Hi Folks,
>
> I'm working on a project where I can make good use of global
> dictionaries, but I can't figure out how to configure and call them
> from outside of a method in one window or class.
>
> I've tried to add a dictionary property to my Globals module with the
> scope set to Global, but as soon as I try to access that dictionary
> in another module, the runtime gives me a NOE (i.e.:
> dMyListElements.Clear).
>
> Basically, I'm trying to load a dictionary from an event in one list
> box to speed up a simplify the hi-lighting and fill of a different
> listbox on row expansion.


Use a computed property.


Property dMyListElements() as Dictionary
Function Get() as Dictionary
   static d as new Dictionary
   return d
End Function

Charles Yeomans
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to