Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
File transfers threaten sanity of newbie coder...
Message
From
24/11/1999 19:22:53
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Third party products
Title:
File transfers threaten sanity of newbie coder...
Miscellaneous
Thread ID:
00295405
Message ID:
00295405
Views:
62
The situation: I have a VFP5 app that triggers the CarbonCopy32 autopilot to send data to client sites. I want Foxpro to sit quietly and wait for CC32 to finish in order to conserve resources, etc.

CarbonCopy has nothing unique as far as I know that complicates this; I'm just missing something. For comic effect if nothing else, here are:

Old Solution A: Calculate a wait period n based on the total size of the files transferred and throw up a wait window timeout n. This leaves my users helpless to click options in the form. It's just plain sloppy, and...

Newer Solution B: Use a do while loop to check the CarbonCopy Logfile for the 'job completed' message. In order to prevent constant out-of-control looping, a (you guessed it) wait window is included at some point in the loop to slow down the ol' fox - and there we are right back in the same boat.

Code-built timer control? OLE? What? Huh?

It's the apparent simplicity of this that gets me. Ya don't need to take me all the way there, but a pointer toward a path would be much appreciated.
Next
Reply
Map
View

Click here to load this message in the networking platform