declare global error
Dennis Malen
dmalen at malen.com
Wed Nov 7 15:05:00 PST 2012
Here are my results:
I don't understand why, but (as suggested) by reversing the "global" and the
"extern" fixed the error that was popping up.
To summarize: I had the "global" in the call processing. The "extern" was in
the input processing table. Once reversed, it worked fine.
I have always said and I am repeating it again, that the filepro list is so
important to all of us and you guys and gals do such a great job in
responding to everyones concerns.
Thanks again,
Dennis
-----Original Message-----
From: filepro-list-bounces+dmalen=malen.com at lists.celestial.com
[mailto:filepro-list-bounces+dmalen=malen.com at lists.celestial.com] On Behalf
Of Kenneth Brody
Sent: Wednesday, November 07, 2012 10:06 AM
To: Richard Kreiss
Cc: filePro Mailing List
Subject: Re: declare global error
On 11/7/2012 1:27 AM, Richard Kreiss wrote:
> On Nov 6, 2012, at 8:18 PM, "Dennis Malen" <dmalen at malen.com> wrote:
>
>> I am getting the following error:
>>
>> ERROR Global 'sandy' already defined.
>>
>> I have a call statement in @entsel.
>>
>> In @entsel I have a "declare extern sandy"
>>
>> In the call statement I have "declare global sandy(8)"
>>
>> Any reason anyone can see why I would be getting an error.
>>
>> Sandy is not defined anywhere else in input processing.
[...]
> Try reversing the declare. Put declare global in the calling process
> and declare external in the called program.
See my other e-mail as to *why* this might be a solution.
> Another solution, if you gave an auto process table is declare global
> there. Then sandy will be available in any processing table.
Declared variables do not "share" between processes based on whether or not
they're declared in automatic processing, as is done with dummy fields. The
"sharing" is done entirely on whether you use "declare global" or "declare
local".
--
Kenneth Brody
_______________________________________________
Filepro-list mailing list
Filepro-list at lists.celestial.com
Subscribe/Unsubscribe/Subscription Changes
http://mailman.celestial.com/mailman/listinfo/filepro-list
More information about the Filepro-list
mailing list