Dim foobar(14):lone(20)

Jay Ashworth jra at baylink.com
Thu Apr 5 07:40:54 PDT 2012


----- Original Message -----
> From: "GCC Consulting" <rkreiss at gccconsulting.net>

> 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?

I would say yes: when you map an array to something else, that array isn't
"real"; the names are just pointers to where the variables "really" live: 
if that's a record in a file, and you close the file, I'm amazed you don't 
get a syntax error trying to reference them.

Cheers,
-- jra
-- 
Jay R. Ashworth                  Baylink                       jra at baylink.com
Designer                     The Things I Think                       RFC 2100
Ashworth & Associates     http://baylink.pitas.com         2000 Land Rover DII
St Petersburg FL USA      http://photo.imageinc.us             +1 727 647 1274


More information about the Filepro-list mailing list