Run VFP prg when SQL report is done
Run VFP prg when SQL report is done
I am using RR Infinity SQL to create a VFP dbf. When it is done, I want to call/execute/run a VFP program. Any ideas?
=> Run VFP prg when SQL report is done
You could lauch rswrun.exe from the VFP program and create the DBF before running the code that will use that DBF.____Kathleen__R&R Support
==> RE: Run VFP prg when SQL rep^s done
I^m not familiar. If I run rswrun.exe from VFP, how will I know within the VFP program when the table is created so that I can start working on it?
-
- Posts: 3
- Joined: Tue Oct 10, 2017 12:44 pm
===> RE: Run VFP prg when SQL rep^s done
The Foxpro program should be able to Poll for the creation of the DBF.____do while !file("drive:/path/myfile.dbf" )__* warning this is an infinite loop if the file is never created__enddo______The prudent step at the start of the program would be to include the deletion of any prior created tables.____if file("drive:/path/myfile.dbf" )__dele file "drive:/path/myfile.dbf"__endif____After multi application of the program and the code might find an older version of the DBF and not pause.
====> RE: Run VFP prg when SQL rep^s done
Thanks for the VFP pointers.