|Subject:||Re: Multiple Froms Opening Same Library
|Date:||12 Dec 2020 14:16:29 -0400
|From:||"Kevin Zawicki" <email@example.com>
yes, each form needs to open whatever it needs, itself.. the one black hole
with libraries is they can't call another method in themselves.. or if they
can, I don't know how
I think you can...
just call the method directly, no need to put in uses or open library variable.
libA has method1 and method2
you can open to libA and call method1
method 1 can use any method in the same library
"Steven Green" <firstname.lastname@example.org> wrote:
>yes, each form needs to open whatever it needs, itself.. the one black hole
>with libraries is they can't call another method in themselves.. or if they
>can, I don't know how
>Myrtle Beach, South Carolina, USA
>Collectibles and Memorabilia
>Vintage Lego Sets and Parts
>- and Paradox support, too
>"Tom Krieg" wrote in message news:email@example.com...
>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
>> to open the library to be used by all the forms"? Thank you.