rogerpaskett
Programmer
I have written a script in Paradox 5 (for windows). When I run it by stepping through the code it works fine. When I run the script without breakpoints it returns erronious information.
To be exact:
It is an installation program that "unpacks" a set of files (using PAK.exe) from an install directory to the directory where application resides (C:\CUSTAPP).
After the files are unpacked I check to make sure they are there before proceding. I use the following:
If NOT fs.findFirst( sProdDir + "\\cadds.fsl" then
msgStop("Problem", "The new CADDS form is missing. "+ sErrMsg )
quitloop
endif
The script displays the message above. But, before I press the msgStop OK button, I check to see if the info is correct. It is not. The new file has been copied and is in the sProdDir + "cadds.fsl" (or "C:\CUSTAPP" directory.
Does anyone have an idea why my script works under breakpoint mode but does not work while being run?
To be exact:
It is an installation program that "unpacks" a set of files (using PAK.exe) from an install directory to the directory where application resides (C:\CUSTAPP).
After the files are unpacked I check to make sure they are there before proceding. I use the following:
If NOT fs.findFirst( sProdDir + "\\cadds.fsl" then
msgStop("Problem", "The new CADDS form is missing. "+ sErrMsg )
quitloop
endif
The script displays the message above. But, before I press the msgStop OK button, I check to see if the info is correct. It is not. The new file has been copied and is in the sProdDir + "cadds.fsl" (or "C:\CUSTAPP" directory.
Does anyone have an idea why my script works under breakpoint mode but does not work while being run?