Filepro-list Digest, Vol 78, Issue 28

Boaz Bezborodko boaz at mirrotek.com
Thu Jul 22 11:45:56 PDT 2010


> Date: Thu, 22 Jul 2010 10:04:21 -0400
> From: "Chris Sellitto"<sellich at guaranteedreturns.com>
> Subject: Global Already Defined Error (GRX)
> To:<filepro-list at lists.celestial.com>
> Message-ID:
> 	<A7A4697363A42F4FB64598C8C54A88400D0765 at mail.guaranteedreturns.com>
> Content-Type: text/plain;	charset="utf-8"
>
> filePro? 5.0.14RN9
> Windows server 2003 R2
> Workstation: WinXP SP3
>
>
> Hello all,
>
> I hope you ladies and gentlemen can help.  I may be overlooking the obvious, but I am getting the following error.....
>
> ERROR Global 'Except_ShiptoVen' already defined.
>
> I will show a small snippet of code for the selection process, and the called process (from within the selection process).
>
>
> SELECTION PROCESS:
> 13  -------   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -
>         ? If:
>         Then: DECLARE GLOBAL Except_Found(1,yesno,g)
>   14  -------   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -
>         ? If:
>         Then: DECLARE GLOBAL Except_ShiptoVen(5,*,g)
>   15  -------   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -
>         ? If:
>         Then: DECLARE GLOBAL Except_ShipToTy(1,allup)
>
> CALLED PROCESS:
> 10  -------   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -
>         ? If:
>         Then: DECLARE EXTERN Except_ShipToTy
>   11  -------   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -
>         ? If:
>         Then: DECLARE EXTERN Except_MinQTY
>   12  -------   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -
>         ? If:
>         Then: DECLARE EXTERN Except_DatingPol
>   13  -------   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -
>         ? If:
>         Then: DECLARE EXTERN Except_Indates
>   14  -------   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -
>         ? If:
>         Then: DECLARE EXTERN Except_ShipToVen
>
> EXPLANATION:
> After my selection process is complete and has selected all the records necessary, it generates the error that I stated earlier in the post.  Now, this error is also generated for the Except_ShipToTy declared variable as well.  After it shows these 2 errors, the process continues as normal.  I know these are only a few lines of code from each process, but I know the question that a lot of you will ask.  Is it already defined in another process (i.e. output, auto.....)? The answer is no.  These are the only places that these variables are defined.  One crazy theory I had was that I noticed the first 13 characters are exactly the same for these 2 variables.  I know it is grabbing at straws at this point, but I really have not seen this error before in the last 16 years I have been programming in filePro?. I declare variables all the time.  I even use these same variables in other programs, as well, with no problems.  It is driving me crazy at this point.
>
> Thank you in advance for any help with this issue.
>
> Chris

Chris,

Have you used Debug to go through it line by line?  Filepro won't 
recognize a declared variable until it hits the DECLARE command on a 
line.  If so then the logical conclusion is that it must have hit this 
variable before the DECLAREs you are looking at.  Debug will let you see 
if it ever happens before getting to line 14.

Boaz



More information about the Filepro-list mailing list