I'm standardizing all my scripts with the following headercode:
dim $iRC
$iRC=SETOPTION('Explicit','On')
$iRC=SETOPTION('NoVarsInStrings','On')
and I make liberal use of the DISPLAYTEXT() and Err() UDF in oder to create log/error files hidden from the user.
DisplayText() also gives me the flexibility to selectively switch on/off console output and only display major steps in a script while the log file contains information about every single sub-step.
the only thing that I'm currently trying to figure out is whether to put each UDF into it's own UDFNAME.UDF file or to group functions into functions groups like NETWOUR.UDF or MAPPIMGS.UDF. the first option is a littel harder to handle as you might have to call 30+ separate UDFs and you will have to clean up if you remove a UDF form your script. Though, Glenn Barnas utility might come in handy for this, though I'm not sure it can handle EXECUTE statements and KiXforms scripts.
[ 11. July 2003, 15:52: Message edited by: sealeopard ]
_________________________
There are two types of vessels, submarines and targets.