Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Waiting in my program until a file exists
Message
De
15/07/2005 10:00:35
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP1
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
01033027
Message ID:
01033028
Vues:
19
This message has been marked as the solution to the initial question of the thread.
>I have a program which executes some SQL and then outputs an output file named as a PDF. I then carry other functions within my program.
>
>The problem is the next line of code after producing the file is to rename it. When i try to rename the file it says the file doesn't exist. If I pause the program for a while then execute then it works fine.
>
>How do I get my program to wait until the file exists?
>
>Many Thanks

declare Sleep in win32API integer dwMillisecs
do while !file(m.lcFileName)
Sleep(1000)
enddo

Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform