In that case, where every file is named "FILE" in your programs, but you want to make sure FILE is opened against CUSTOMER, I would guess you would do this:
IF (FILEINFO(FILE, 0) = 0) THEN OPEN 'CUSTOMER' TO FILE ELSE .... END END ELSE IF FILEINFO(FILE,17) # "CUSTOMER" THEN CLOSE FILE OPEN 'CUSTOMER' TO FILE ELSE .... END END END David W. -----Original Message----- From: u2-users-boun...@listserver.u2ug.org [mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Wjhonson Sent: Monday, March 05, 2012 11:06 AM To: u2-users@listserver.u2ug.org Subject: Re: [U2] Hello I don't think this will work. In your example John, you need to know the file variable assigned to the file. So IF (FILEINFO(CUSTOMER,0)=0) THEN OPEN "CUSTOMER" TO CUSTOMER ELSE... But you can't use FILEINFO to check "CUSTOMER", only to check CUSTOMER. So you can't tell if a file is opened already and to what file variable. You can only tell if a certain file variable is opened. -----Original Message----- From: Israel, John R. <johnisr...@daytonsuperior.com> To: 'U2 Users List' <u2-users@listserver.u2ug.org> Sent: Mon, Mar 5, 2012 7:56 am Subject: Re: [U2] Hello I assume you have some way of knowing what files you want. Do something like: IF (FILEINFO(yourfilename, 0) = 0) THEN OPEN yourfilename ... ND John -----Original Message----- rom: u2-users-boun...@listserver.u2ug.org [mailto:u2-users-boun...@listserver.u2ug.org] n Behalf Of Dave Laansma ent: Monday, March 05, 2012 10:38 AM o: U2 Users List ubject: Re: [U2] Hello Okay, I've got a pretty simple question ... How do I get a list of all files that are currently OPEN so I know whether I eed to open a given file again? Sincerely, avid Laansma T Manager ubbard Supply Co. irect: 810-342-7143 ffice: 810-234-8681 ax: 810-234-6142 ww.hubbardsupply.com Delivering Products, Services and Innovative Solutions" -----Original Message----- rom: u2-users-boun...@listserver.u2ug.org mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of u2ug ent: Monday, March 05, 2012 10:32 AM o: U2 Users List ubject: [U2] Hello Is the list alive ? Haven't seen anything for a week. ______________________________________________ 2-Users mailing list 2-us...@listserver.u2ug.org ttp://listserver.u2ug.org/mailman/listinfo/u2-users ______________________________________________ 2-Users mailing list 2-us...@listserver.u2ug.org ttp://listserver.u2ug.org/mailman/listinfo/u2-users _______________________________________________ 2-Users mailing list 2-us...@listserver.u2ug.org ttp://listserver.u2ug.org/mailman/listinfo/u2-users _______________________________________________ U2-Users mailing list U2-Users@listserver.u2ug.org http://listserver.u2ug.org/mailman/listinfo/u2-users _______________________________________________ U2-Users mailing list U2-Users@listserver.u2ug.org http://listserver.u2ug.org/mailman/listinfo/u2-users