How to share variables with Yab lib?
#1
The application I am writing is going to need to contain 15+ subroutines, all of which will be 500+ lines of code. I decided to just make each subroutine its own .yab file and then I will IMPORT it at the beginning of my main program.

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?

Also, curiously, when I import the subroutine file, I cannot used "#! /bin/yab" at the beginning of the imported .yab file or I get an error.
Reply


Messages In This Thread
How to share variables with Yab lib? - by PurpleStudio - 10-07-2024, 07:42 PM

Forum Jump:


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