Richard,
I can't argue with the results but it's not quite what I'd like to do. Given a pretty straightforward bit of script in which the @error macro is used I'd simply like to be able to add a line something like @error=<some value>, so that I can easily check the actual program flow when specific (or any) error codes are produced by the preceeding function or command. I know it's not a big thing but it's something which would be used so often that it's worth requesting.