I want to append details to an error report, but the variables I would be sending are only active in certain instances. I tried setting up a function like this
Function ErrorData() if not filename is nothing then ErrorData = ErrorData & "Filename: " & filename & vbCrLf end if if not parms is nothing then ErrorData = ErrorData & "parms: " & parms & vbCrLf end if End Function But it still generates an error at script launch because the variables aren't active. Is there a better way to do this, or should I just put the append info right by the part of the script where these variables are active? That method seems cluttered. J.J. Meddaugh - ATGuys.com A premier Licensed Code Factory and KNFB Reader distributor
