Steve,
Whenever I have had an ERROR in my variables as you describe, it is either because the variables have not been created in rows above the ERROR variable or I have not used the proper syntax. Also the expression I am describing has a different name than the expressions in the IF function EX. VSUMDIR = (IFEQ(TYPESALE,'DIR',SELLAMT,0)). You seem to be using the same variable name you are creating as the ones you are using in the expression. I hope that helps. Jim ________________________________ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Steve Breen Sent: Friday, November 14, 2008 9:46 PM To: RBASE-L Mailing List Subject: [RBASE-L] - RE: FW: [RBASE-L] - Unrecognized Global Variable Error Jim, This is in the same form This works; 3. TEXT : vendorn = (ifnull(.v_vendorn, vendorn, .v_vendorn)) 4. TEXT : V_vendorn = .VNULL_TEXT This does not; 56. TEXT : vendor2 = (ifnull(.v_vendor2, vendor2, .v_vendor2)) 57. TEXT : V_vendor2 = .VNULL_TEXT Unrecognized Global Variable Error Form of course will not run. May have to look at code up to form entry now that I consider it. Trying to duplicate proces for second vendor in form I am thinking I may have a issue here also; V_vendor2 = .VNULL_TEXT V_vendorn = .VNULL_TEXT Steve ________________________________ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Jim Belisle Sent: Friday, November 14, 2008 10:21 PM To: RBASE-L Mailing List Subject: [RBASE-L] - RE: FW: [RBASE-L] - Unrecognized Global Variable Error It looks like you have spaces between the commas and the variables after the commas. If so, try getting rid of the spaces. ________________________________ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Steve Breen Sent: Friday, November 14, 2008 9:17 PM To: RBASE-L Mailing List Subject: [RBASE-L] - RE: FW: [RBASE-L] - Unrecognized Global Variable Error Jim No But I am setting vendorn = (ifnull(.v_vendorn, vendorn, .v_vendorn)) V_vendorn = .VNULL_TEXT Could this be an issue ?? Steve ________________________________ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Jim Belisle Sent: Friday, November 14, 2008 10:00 PM To: RBASE-L Mailing List Subject: [RBASE-L] - RE: FW: [RBASE-L] - Unrecognized Global Variable Error Steve, Is vendor2 defined anywhere above var 56? Jim ________________________________ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Steve Breen Sent: Friday, November 14, 2008 8:58 PM To: RBASE-L Mailing List Subject: [RBASE-L] - FW: [RBASE-L] - Unrecognized Global Variable Error Well it was not a typo. I have something wrong 56. ERROR : vendor2 = (ifnull(.v_vendor2, vendor2, .v_vendor2)) 57. TEXT : this_vendor2 = vendor2 58. TEXT : V_vendor2 = .VNULL_TEXT ________________________________ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Steve Breen Sent: Friday, November 14, 2008 9:22 PM To: RBASE-L Mailing List Subject: [RBASE-L] - Unrecognized Global Variable Error Can anyone see why I am getting this error? -ERROR- Unrecognized global variable in expression. (2161)- >From the following line? vendor2 = (ifnull(.v_vendor2, vendor2, .v_vendor2)) Steve

