Dim foobar(14):lone(20)

Bruce Easton bruce at stn.com
Thu Apr 5 08:04:55 PDT 2012


On 4/5/12 10:40 AM, Jay Ashworth wrote:
> ----- 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
If you just have a 'write lone' and not a 'close lone', then I would 
think the lookup should not be closed and the array should still map to 
the lookup record as you have specified.

Bruce


More information about the Filepro-list mailing list