Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Waiting in my program until a file exists
Message
From
15/07/2005 10:00:35
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP1
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01033027
Message ID:
01033028
Views:
20
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
Previous
Reply
Map
View

Click here to load this message in the networking platform