Paradox Community

Items in pnews.paradox-programming

Subject:Re: Multiple Froms Opening Same Library
Date:Sat, 12 Dec 2020 11:51:08 -0500
From:"Steven Green" <>
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


Steven Green
Myrtle Beach, South Carolina, USA

Collectibles and Memorabilia
Vintage Lego Sets and Parts
- and Paradox support, too
"Tom Krieg"  wrote in message

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
a Library".

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.
> Peter 

Copyright © 2004