Colleagues,
We have a program (in dBase, EXE, quite old) that calls another program (in VFP9, also EXE) and sits in the infinite loop waiting for that VFP program to create some table file (DBF, compatible with both, dBase and VFP9). This lil' DBF is kind of a data transporter between these two programs. The problem is that, since this interaction is conducted via network channels, VFP program does not always have enough time to finish data transfer before dBase program grabs that DBF - and finds it either empty or worse...
The code in the dBase program is quite simple:
We need to slow down this loop processing. Can't use INKEY(.1), it's out of the question koz the VFP program can be minimized and ... you've got the picture.
Neither could I find Timer object in the dBase's Help.
What other means are there in the ol' good Visual dBase 5.7 for Windows to make this DO...UNTIL wait, say 0.1 second on each iteration?
TIA!
Regards,
Ilya
We have a program (in dBase, EXE, quite old) that calls another program (in VFP9, also EXE) and sits in the infinite loop waiting for that VFP program to create some table file (DBF, compatible with both, dBase and VFP9). This lil' DBF is kind of a data transporter between these two programs. The problem is that, since this interaction is conducted via network channels, VFP program does not always have enough time to finish data transfer before dBase program grabs that DBF - and finds it either empty or worse...
The code in the dBase program is quite simple:
Code:
Run(.T.,"&cWhereIs\VFP_Program.exe"...)
cFile = cWhereIs+"\rtndata.dbf"
do
*// loop
until file(cFile)
We need to slow down this loop processing. Can't use INKEY(.1), it's out of the question koz the VFP program can be minimized and ... you've got the picture.
Neither could I find Timer object in the dBase's Help.
What other means are there in the ol' good Visual dBase 5.7 for Windows to make this DO...UNTIL wait, say 0.1 second on each iteration?
TIA!
Regards,
Ilya