[futurebasic] Re: [FB] None

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

From: "Phil Yates" <pyates@...>
Date: Wed, 19 May 1999 22:28:40 +0100
> In my main program file I have a variable, dim names$(50), and I read names
> from a text file into names$.  Now I want to pass the whole array names$ to an
> ".INCL" file which has a variable, dim thenames$(50), declared in it.  Is that
> possible?  I thought you could just say fn gettingnames(names$) in my main
> program file and a fn gettingnames(thenames$) in my .INCL file, but this don't
> seem to work.

Doug,

Sorry, but I can't understand why you need to do this. Why not read the data
into gNames$(50) - that is, into a global array. That way, you don't need to
do the second step. And if you need a second local array, it's easy to move
it all across.

Don't think of INCL files as separate - they're really all part of the same
global program.

HTH,

Phil