Dim foobar(14):lone(20)
Kenneth Brody
kenbrody at spamcop.net
Thu Apr 5 08:16:26 PDT 2012
On 4/5/2012 10:37 AM, GCC Consulting wrote:
> Dim foobar(14):lone(20);dim harry(14):ltwo(20)
>
> I have a program which does a lookup to file lone and posts some data. I
> then do a write lone.
>
> The program then does a lookup free to ltwo, posts some data and the is
> supposed to pass the data from foobar to harry. Those mapped fields in ltwo
> are blank.
>
> It appears that my write lone causes foobar to be blank. Am I correct in
> that once the file is closed, the array no longer holds this information?
You are correct that if you CLOSE a lookup, the array aliased to it becomes
invalid. (Not just "blank". In fact, I would expect that you would get a
"lookup as not been performed" error.) However, you said you did WRITE, not
CLOSE, which does not invalidate anything. The lookup, and the array
aliased to it, still contain exactly the same data as before the WRITE.
--
Kenneth Brody
More information about the Filepro-list
mailing list