Multi library method calling
Scotte Meredith
spomacguy at gmail.com
Thu Mar 30 22:48:29 UTC 2023
> On Mar 30, 2023, at 3:23 PM, Mike Rowan <michael.rowan3 at gmail.com> wrote:
>
> I'd be very happy if someone would tell me the correct way to call a method
> in another library.
> Suppose I have 2 libraries internally named 'lib1' and 'lib2'.
>
> In lib1 I've tried:
>
> Do $root.$libs.$add(lFullPath,kfalse,lib2) Returns lRef
This says "Create a new library". If you just created the library, its Startup_Task would be empty.
Instead, try:
Set reference lRef to $root.$libs.lib2
Check your reference here. It should be pointing to the library.
Then your next line should work.
> Do lRef.Startup_Task.$initialise
>
> This successfully opens Library2, but refuses to call the Lib2 Startup_Task
> method.
> Also tried different call:
> Do lRef.$tasks.Startup_Task.$initialise
Scotte Meredith
spomacguy at gmail.com
509/998-0991
More information about the omnisdev-en
mailing list