You could add properties to _screen and use them in place of variables in the build script, since CLEAR ALL doesn't affect _screen properties:
_screen.Addproperty("outputpath", "c:\output")
>I do a CLOSE ALL before the build, plus a few CLEAR PROGRAM statements. The CLEAR ALL does work but I also lose all the variables that are used as part of the build script.
>
>>It seems extreme, but have you tried
clear all
and
close all
>>
>>
>>>This is strange. Recently, when I am building a set of projects (from a PRG) I will get an error stating "File canot be closed because outstanding references exist." I researched the error and some suggestion indicate it has to do with class library still being in memory. So read the project file and preform a CLEAR CLASSLIB for each class library in the project before issueing the the BUILD statement. But the error still occurs.
>>>
>>>Can anyone have any other suggestion that may help?