Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Running MS-DOS within VFP
Message
From
06/11/2000 15:33:18
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Running MS-DOS within VFP
Miscellaneous
Thread ID:
00438516
Message ID:
00438516
Views:
57
I have an app that downloads data from a hand held reader. I use a dos exe to download the data file. My problem is that when I call the dos exe it takes a while to download all of the records and my VFP app doesn't wait for the dos exe to finish...so the reader gets a message 'records finished uploading' immediately whether it's done or not. How can I get VFP to wait for the program to finish before continuing on to the next line of code? Any help will be greatly appreciated. (Code sample below)

cMessageTitle = 'Comm Port Selection'
cMessageText = 'Comm Port 1 is the default. Is this O.K.? If you are using Comm Port 2, Press "NO".'
nDialogType = 4 + 32 + 256
nAnswer = MESSAGEBOX(cMessageText, nDialogType, cMessageTitle)
DO CASE
CASE nAnswer = 6
! /N2 c:\vfp\pmp\ul.EXE /f upload.dta /P 1 /o /d /x
CASE nAnswer = 7
! /N2 c:\vfp\pmp\ul.EXE /f upload.dta /P 2 /o /I /d /x
ENDCASE
cMessageTitle = 'Complete'
cMessageText = 'Records have been uploaded.'
nDialogType = 0 + 48
nAnswer = MESSAGEBOX(cMessageText, nDialogType, cMessageTitle)
Here's to alcohol...the cause of ... and solution to ... all of life's problems - - Homer J. Simpson
Next
Reply
Map
View

Click here to load this message in the networking platform