Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to know that a file is still being created & VFP to
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Versions des environnements
Visual FoxPro:
VFP 6 SP5
Divers
Thread ID:
01123731
Message ID:
01124004
Vues:
13
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform