home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.databases
- Path: sparky!uunet!spool.mu.edu!umn.edu!dell32.ortta.umn.edu!durai
- From: durai@ortta.umn.edu (Durai Venkatasubramanian)
- Subject: Re: Foxpro: Used() & File In Use
- Message-ID: <durai.124.726599183@ortta.umn.edu>
- Lines: 28
- Sender: news@news2.cis.umn.edu (Usenet News Administration)
- Nntp-Posting-Host: dell32.ortta.umn.edu
- Organization: U of Mn
- References: <C0KAy2.E5M@acsu.buffalo.edu>
- Date: Sat, 9 Jan 1993 17:06:23 GMT
- Lines: 28
-
- In article <C0KAy2.E5M@acsu.buffalo.edu> v125qmam@ubvmsb.cc.buffalo.edu (Ami R Pflugrad) writes:
- >From: v125qmam@ubvmsb.cc.buffalo.edu (Ami R Pflugrad)
- >Subject: Foxpro: Used() & File In Use
- >Date: 9 Jan 93 01:05:00 GMT
- >Hi All!
- >
- > IF Used("AcctMast")
- > Select AcctMast
- > Else
- > Select 5
- > USE \Foxpro2\Develop\FileMain\Accounts\Acctmast
- > EndIF
- >
-
- Used() will return T or F, after checking the current work area, or the work
- area specified within the used(). Unfortunately, it does not seem to check
- all the work areas for an open file, wait, unless you open the file with an
- alias. With an alias, it somehow seems to work.
-
- Try this:
-
- if used("acctmast")
- select acctmaster
- else
- select 5
- use acctmaster alias acctmast
- endif
-
-