TIP: Click on subject to list as thread! ANSI
echo: foxpro
to: RICK LIEBESPACH
from: CY WELCH
date: 1997-02-21 16:45:00
subject: Creating a `Watch` program

Hello Rick!
Tuesday January 07 1997 07:23, Rick Liebespach wrote to All:
 RL> Here's my situation.
 RL> I'm using FoxPro 2.6 under Windows 95. I've got a bunch
 RL> of reports, that were originally designed for a dotmatrix
 RL> printer, that I have to "re-process", taking advantage
 RL> of laser printer capabilites, making them look pretty.
 RL> So, what I'm doing is trying to make an app that will
 RL> "Watch" in a user selected directory for a specific file
 RL> to come into existance.  Then it will append that file into
 RL> a database for "re-processing", and rename to original file
 RL> for temporary safe keeping.
 RL> If that was all I wanted to do then I'd set up a loop like:
 RL>    do while lWatch and file("reports.rpt")
 RL>       =ProcessData()
 RL>    enddo
There is an fll for FPW that will make it run a routine every certain amount 
of time.  You can ALSO, put a timeout in your read that will make it do that. 
Just make sure that you use something to make it come BACK to the read unless 
you choose quit (like a variable).
Remind me in a few days and I will have a copy of the fll around to make 
available.
Cy
Internet: Cy.Welch@pmra.gigo.com
          cwelch@calweb.com
Web Page: http:/www.calweb.com/~cwelch/
FTP  DIR: ftp:/ftp.calweb.com /users/c/cwelch/
... ROM instruction: (R)ead (O)perators (M)ind.
--- GoldED/386 2.50+
---------------
* Origin: PMRA Tech Support 916-448-5376 (FIDONET 1:203/123)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.