Paradox Community

Items in pnews.paradox-programming

Subject:Re: Multiple Froms Opening Same Library
Date:12 Dec 2020 14:16:29 -0400
From:"Kevin Zawicki" <numberjack@wi.rr.com>
Newsgroups:pnews.paradox-programming

>
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" <greens@diamondsg.com> 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
>
>--
>
>Steven Green
>Myrtle Beach, South Carolina, USA
>
>http://www.OasisTradingPost.com
>
>Collectibles and Memorabilia
>Vintage Lego Sets and Parts
>- and Paradox support, too
>"Tom Krieg"  wrote in message news:5fd46372@pnews.thedbcommunity.com...
>
>You need to open the library in the form if you want the form to use the
>library.
>
>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 thedbcommunity.com