In compile, my programs run fine. When I turn them into EXE
files however, I encounter the pgm-ctr error. The following is
the most common one.
7 at pgm-ctr 308
I can't even tell which program is triggering this error
because my program constantly shells another EXE file. I have one
"control" program that shells which ever program needed to run. Only
variables in the "Control" program need to stay intact- the
shelled to EXE variables do not need to be preserved.
Example:
If Invntry < MinReqs then
if Invntry < 0 then
Shell "C:\stock\autordr.exe"
else
Shell "c:\Stock\MinReqs.exe" :'Min inventory required!
end if
else
if Invntry > 40 then
Shell "C:\Stock\Ovrstck.exe":' TOO MUCH inventory!
end if
end if
And so on. Is there a way to determine which line and program s
triggering this type of error? I am hoping for a relatively easy
way to do this so I can do it myself. I counted the Shells, and
I have a total of 37 SHELLs. Is that the problem?
Thanks!
------------------
files however, I encounter the pgm-ctr error. The following is
the most common one.
7 at pgm-ctr 308
I can't even tell which program is triggering this error
because my program constantly shells another EXE file. I have one
"control" program that shells which ever program needed to run. Only
variables in the "Control" program need to stay intact- the
shelled to EXE variables do not need to be preserved.
Example:
If Invntry < MinReqs then
if Invntry < 0 then
Shell "C:\stock\autordr.exe"
else
Shell "c:\Stock\MinReqs.exe" :'Min inventory required!
end if
else
if Invntry > 40 then
Shell "C:\Stock\Ovrstck.exe":' TOO MUCH inventory!
end if
end if
And so on. Is there a way to determine which line and program s
triggering this type of error? I am hoping for a relatively easy
way to do this so I can do it myself. I counted the Shells, and
I have a total of 37 SHELLs. Is that the problem?
Thanks!
------------------
Comment