dbTalk Databases Forums  

Checking for open files

comp.databases.filemaker comp.databases.filemaker


Discuss Checking for open files in the comp.databases.filemaker forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
bjaynes@montanaport.net
 
Posts: n/a

Default Checking for open files - 12-12-2006 , 10:00 PM






Hello,
I'm using one file to open another in FMP5 on Windows98. Would like to
be able to test if the file to be opened is already open. Any ideas on
how to do that?
Thanks,
Bill


Reply With Quote
  #2  
Old   
Helpful Harry
 
Posts: n/a

Default Re: Checking for open files - 12-12-2006 , 11:16 PM






In article <1165982437.004676.189840 (AT) n67g2000cwd (DOT) googlegroups.com>,
"bjaynes (AT) montanaport (DOT) net" <bjaynes (AT) montanaport (DOT) net> wrote:

Quote:
Hello,
I'm using one file to open another in FMP5 on Windows98. Would like to
be able to test if the file to be opened is already open. Any ideas on
how to do that?
Thanks,
Bill
There isn't any way to know, but you don't really need to. The "Open"
script command will open the file, whether or not it's already open. A
related file will also be opened automatically.

Helpful Harry
Hopefully helping harassed humans happily handle handiwork hardships ;o)


Reply With Quote
  #3  
Old   
John Weinshel
 
Posts: n/a

Default Re: Checking for open files - 12-13-2006 , 04:25 AM



I cannot remember if 5 had the Database Names function. It returned a list
of open files.

--
John Weinshel
Datagrace
Vashon Island, WA
(206) 463-1634
Certified For Filemaker 8
Certified For Filemaker 7


<bjaynes (AT) montanaport (DOT) net> wrote

Quote:
Hello,
I'm using one file to open another in FMP5 on Windows98. Would like to
be able to test if the file to be opened is already open. Any ideas on
how to do that?
Thanks,
Bill




Reply With Quote
  #4  
Old   
Matt Wills
 
Posts: n/a

Default Re: Checking for open files - 12-13-2006 , 08:34 AM



I can go back only as far as 6. DatabaseNames is there.

M

On 12/13/2006 05:25:15 "John Weinshel" <john (AT) datagrace (DOT) biz> wrote:

Quote:
I cannot remember if 5 had the Database Names function. It returned a
list of open files.

Reply With Quote
  #5  
Old   
bjaynes@montanaport.net
 
Posts: n/a

Default Re: Checking for open files - 12-13-2006 , 11:37 AM



That's right, there is that design function. Thanks John and everyone.
I need that so the opening file will close if the one to be opened is
open already.
Bill Jaynes

John Weinshel wrote:
Quote:
I cannot remember if 5 had the Database Names function. It returned a list
of open files.

--
John Weinshel
Datagrace
Vashon Island, WA
(206) 463-1634
Certified For Filemaker 8
Certified For Filemaker 7


bjaynes (AT) montanaport (DOT) net> wrote in message
news:1165982437.004676.189840 (AT) n67g2000cwd (DOT) googlegroups.com...
Hello,
I'm using one file to open another in FMP5 on Windows98. Would like to
be able to test if the file to be opened is already open. Any ideas on
how to do that?
Thanks,
Bill



Reply With Quote
  #6  
Old   
Helpful Harry
 
Posts: n/a

Default Re: Checking for open files - 12-13-2006 , 02:07 PM



In article <1213934.YIYBPTDC (AT) news (DOT) verizon.net>, Matt Wills
<Im (AT) witz (DOT) end> wrote:

Quote:
On 12/13/2006 05:25:15 "John Weinshel" <john (AT) datagrace (DOT) biz> wrote:

I cannot remember if 5 had the Database Names function. It returned a
list of open files.

I can go back only as far as 6. DatabaseNames is there.
You're right. It is there in both FileMaker 5 and FileMaker 4. Sorry,
for some strange reason I was looking under the Status Functions rather
than the Design Functions. (

Helpful Harry
Hopefully helping harassed humans happily handle handiwork hardships ;o)


Reply With Quote
  #7  
Old   
Helpful Harry
 
Posts: n/a

Default Re: Checking for open files - 12-13-2006 , 02:11 PM



In article <1166031471.338543.191510 (AT) 80g2000cwy (DOT) googlegroups.com>,
"bjaynes (AT) montanaport (DOT) net" <bjaynes (AT) montanaport (DOT) net> wrote:

Quote:
That's right, there is that design function. Thanks John and everyone.
I need that so the opening file will close if the one to be opened is
open already.
As before though, unless you're doing something you haven't mentioned
you don't really need to know if the file is already open or not.

A simple script like this will work:

Open [MyFile.fm5]
Close []

It will open the file MyFile.fp5 whether or not it is already open and
then close the current file.

Helpful Harry
Hopefully helping harassed humans happily handle handiwork hardships ;o)


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.