Dim foobar(14):lone(20)

Richard Kreiss rkreiss at verizon.net
Thu Apr 5 08:05:27 PDT 2012



> -----Original Message-----
> From: filepro-list-bounces+rkreiss=verizon.net at lists.celestial.com
> [mailto:filepro-list-bounces+rkreiss=verizon.net at lists.celestial.com] On
> Behalf Of Jay Ashworth
> Sent: Thursday, April 05, 2012 10:41 AM
> To: filepro-list at lists.celestial.com
> Subject: Re: Dim foobar(14):lone(20)
> 
> ----- 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


Jay,

No syntax or any other error message when the program runs.

Moved the write lone to the line with write ltwo.  This should solve the
problem.

Richard

Richard



More information about the Filepro-list mailing list