Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to know that a file is still being created & VFP to
Message
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Environment versions
Visual FoxPro:
VFP 6 SP5
Miscellaneous
Thread ID:
01123731
Message ID:
01124004
Views:
10
This message has been marked as the solution to the initial question of the thread.
Hi Bhavbhuti,

Check out FILE()


>Hi all
>
>I use the ActiveX control in a seperate VFP utility for just this purpose. This ActiveX is of Report Manager and it is supposed to create a PDF file.
>
>As this utility (exe) is being run as a seperate process from my main VFP app so the app can continue while the utility is being executed.
>
>In case the user has asked for a PDF file generation and print, the main VFP app is supposed to wait while the PDF file is being created. I have the following code please let me know if it can be improved upon.
>
>
		lnSeconds = SECONDS()
>		
>		*** loop until the files is freed from RM creation
>		DO WHILE .T.
>			lnFH = FOPEN(lcTextFile, 12)
>			
>			IF lnFH > 0
>				FCLOSE(lnFH)
>				
>				EXIT
>			ENDIF
>			
>			IF SECONDS() - lnSeconds > 30
>				*** 30 seconds elasped and no file is created
>				EXIT
>			ENDIF
>		ENDDO
--
--
Aashish Sharma
Tele Nos: +1-201-490-5405
Mobile: +91-9821053938
E-Mail:
aashish@aashishsharma.com
write2aashish@gmail.com

You better believe in yourself... if you don't, who else will ?
TODAY is a gift, that's why it's called PRESENT
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform