create()
Richard Kreiss
rkreiss at gccconsulting.net
Wed Aug 28 14:07:01 PDT 2013
Windows Server 2008
Workstations Window 7
filePro 5.6.10
I have a process that creates a batch file. This same processing exists in 2 programs.
In the original program there is no problem creating the file in rreport. However, in the new version, the batch file is not created when running in rreport but is with dreport.(used with the debugger to see if the create() line is executed.
I am creating an xml file prior to the batch file without a problem. I have a sleep "700" after closing the xml file and before creating the batch file.
Anyone have an idea why this works in the older processing table but not the new one?
There were major code changes elsewhere in the program which run after the create section.
65 ------- - - - - - - - - - - - - - - - -
◄ If:
Then: declare batfile
66 ------- - - - - - - - - - - - - - - - -
◄ If:
Then: batfile="runthis.bat"
67 ------- - - - - - - - - - - - - - - - -
◄ If:
Then: aa=create(batfile)
68 ------- - - - - - - - - - - - - - - - -
◄ If: aa = "0"
Then: ERRORBOX "(69) RUNTHIS batch File Not Created\n\rSJ #\r"<1<"\n\rRecord #\r"<@rn<"\r";EXIT "90"
69 ------- - - - - - - - - - - - - - - - -
◄ If:
Then: ex=exists(batfile)
70 ------- - - - - - - - - - - - - - - - -
iIf: @fstat["11"] lt @t4
Then: msgbox "Runthis.bat file out of Date\nNew File Note created\nPress \kZ To Exit";EXIT "90"
71 ------- - - - - - - - - - - - - - - - -
If:
Then: ab=writeline(aa,FLCMD)
72 ------- - - - - - - - - - - - - - - - -
If:
Then: ac=close(aa)
73 ------- - - - - - - - - - - - - - - - -
◄ If: 'pause to give file a chance to close
Then: sleep "500"
Richard Kreiss
GCC Consulting
Office: 410-653-2813
More information about the Filepro-list
mailing list