[futurebasic] Re: [FB] pass the parameters, please

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : January 1999 : Group Archive : Group : All Groups

From: Rick Brown <rbrown@...>
Date: Tue, 05 Jan 1999 18:46:50 -0600
chris wrote:
> A related question: does a 'local' linked list (which was build in one
> function - for example with a 'for-next'-struct) still exist so that the
> first item may be passed as a functions parameter to another function which
> can can use the items from the linked list?

Local variables in a FN are in existence until you hit that function's
END FN statement; in particular, it's OK to pass a pointer to local
variable(s) _into_ another FN; the "outer" function's variables are all
still intact and available while the "inner" function executes.

If your data is located, say, in a handle-type block, then that block is
accessible (to any function) until you explicitly dispose of it.  In
that case, the block could be valid even _after_ the END FN statement.

- Rick