Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Suspending user control while a background process runs
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00301058
Message ID:
00301068
Vues:
24
Paul: I think I'd throw up a modal window that says something informative (Please wait.... processing) that closes itself when the file appears. You could probably throw the source file out to the proper directory in the INIT of the form, and then use a timer to check for the file's existance every half second or so. One thing to look out for - the result file will appear when your other program STARTS writing the file - not necessarily AFTER the file writing operation is complete. How you check to see if the file is finished being written will depend upon what network OS your using. I used to check the file size in Netware (the file size of a new file is zero until the writing of the file is complete) but in NT, I have to try to open the file exclusively to make sure another process isn't still using it.

HTH

>I have a situation where I need to execute some code every few seconds to check and see if a file exists. I do not want the user to be able to do anything until the file does exist. I'm not sure how to do this.
>
>What I'm doing is trying to interface with ICVerify. I write a file to a directory and then Icverify sees that file does its authorization check and then writes a file back to that directory. I don't want the user to be able to do anything until I get a response file back from ICverify.
>
>I supposed I would be using a Timer somehow but I'm not sure how.
>
>Thanks,
>Paul
Kogo Michael Hogan

"Pinky, are you pondering what I'm pondering?"
I think so Brain, but "Snowball for Windows"?

Ideate Web Site
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform