QB64.org Forum

Active Forums => QB64 Discussion => Topic started by: Qwerkey on September 06, 2019, 07:36:07 am

Title: DIM SHARED Array Into a FUNCTION
Post by: Qwerkey on September 06, 2019, 07:36:07 am
I assume that a DIM SHARED array is shared into a FUNCTION in exactly the same way that it is shared into a SUB.  The Wiki states that the sharing is with "sub-procedures" which again I assume includes FUNCTION: I tried a sample routine without passing the array as an argument to demonstrate it to myself (it worked as if shared).  You might have supposed that an old-stager such as I really ought to know this, but I thought that I had better just check.
Title: Re: DIM SHARED Array Into a FUNCTION
Post by: FellippeHeitor on September 06, 2019, 10:07:34 am
Yes.