How to share variables with Yab lib?
#3
(10-07-2024, 07:42 PM)PurpleStudio Wrote: I've completed 1 subroutine, saved it as 'routineExample.yab' and then used "EXPORT SUB routineEXAMPLE()" and then in my main program I call it with "IMPORT routineExample" however, the imported subroutine isn't sharing variables I've declared in my main program & which I rely on in routineEXAMPLE().

Is it possible to do this?

Your global variables should definitely be available. Double-check that you've used them in the same case. Variables are case-sensitive.

local variables need to be passed to the library the same way you'd pass them between subroutines.
Reply


Messages In This Thread
RE: How to share variables with Yab lib? - by clasqm - 10-08-2024, 01:18 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)
Free Web Hosting