Too Many Open Files (was Re: The CLOSE command)
Jeff Harrison
jeffaharrison at yahoo.com
Fri Feb 17 14:08:35 PST 2006
--- Tony Ryder <tryder at westnet.com.au> wrote:
[top posting fixed]
[... Jeff Wrote]
> |That works fine unless you have multiple lookups
> that
> |re-use the same alias. For example:
> |
> |lookup fil = file1 k=ky i=a -nx
> |lookup fil = file2 k=ky i=a -nx
> |lookup fil = file3 k=ky i=a -nx
> |close fil
> |
> |The above code only closes the open files from
> file3.
> |I would like an option to close all of the open
> files
> |from lookups.
> |
> |Jeff Harrison
> |jeffaharrison at yahoo.com
>
> close would close all open files.
>
> If you mean you only want to close open files
> within the call or chained processing table
> then you would have to use close filename
> for each open filename.
>
> Tony Ryder
>
Um, have you tried the code that I posted previously
that proves that this is not the case?
Here it is again:
::ky="":
::lookup pro = file1 k=ky i=a -ng:
::lookup pro = file2 k=ky i=a -ng:
::lookup pro = file3 r=("1") -n:
::a = listbox(@allfiles):
::close pro:
::close pro:
::a = listbox(@allfiles):
The second close is just for fun and has no effect.
Give it a try and substitute valid file names on your
system for the lookups.
On my windows system it shows that only the files from
file3 get closed.
Jeff Harrison
jeffaharrison at yahoo.com
Author of JHExport and JHImport. The easiest and
fastest ways to generate code for filePro exports and imports.
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
More information about the Filepro-list
mailing list