|Subject:||Re: Multiple Froms Opening Same Library
|Date:||Sat, 12 Dec 2020 17:30:08 +1100
|From:||Tom Krieg <REMOVEtomkCAPITALS@sdassociates.com.au>
You need to open the library in the form if you want the form to use the
If you also want other forms to see variables in the library. you need
to declare the variables global to the library (in the library's var
section) and you need to open the library "global to desktop". I think
this is the default. Then you can use forms to read and/or write
variables to the library and share those variables between forms. I
wrote an article many years ago titled "Sharing data between forms using
You still need to open the library in each form, so the form has a
handle to the library.
On 12/12/2020 1:19 pm, Peter wrote:
> I have a few forms that use various methods in a library.
> In the init type of each form I have code to open said library.
> Is there a way of making the library available to all forms without each
> one having to open it? Perhaps the better question, "is this the best
> way to open the library to be used by all the forms"? Thank you.