TIP: Click on subject to list as thread! ANSI
echo: foxpro
to: ALL
from: RICK LIEBESPACH
date: 1997-01-07 07:23:00
subject: Creating a `Watch` program

If anybody could help I'd appreciate it!
Here's my situation.
I'm using FoxPro 2.6 under Windows 95. I've got a bunch
of reports, that were originally designed for a dotmatrix
printer, that I have to "re-process", taking advantage
of laser printer capabilites, making them look pretty.
So, what I'm doing is trying to make an app that will
"Watch" in a user selected directory for a specific file
to come into existance.  Then it will append that file into
a database for "re-processing", and rename to original file
for temporary safe keeping.
If that was all I wanted to do then I'd set up a loop like:
   do while lWatch and file("reports.rpt")
      =ProcessData()
   enddo
But that's only part of what I want.  I also want to be
able to respond to user selections from a menu.  When I
implement a loop like the one above I no longer get my
menu to respond...presumably the systems to busy in the
loop to notice I clicking on a menu item.
[sample menu]
File   View                         Watch
 exit   Browse Current Data          Start
        Browse Report Definitions    Stop
Is there something I'm missing that would make this more
event driven?
Please Help!
Rick Liebespach
813-653-0459
richardl@cftnet.com
or here.
--- FMail 1.22
---------------
* Origin: Software Heaven (813)653-0029 (1:377/41)

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™.