Global Already Defined Error (GRX)

Chris Sellitto sellich at guaranteedreturns.com
Thu Jul 22 07:04:21 PDT 2010


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


More information about the Filepro-list mailing list