WinBatch® Technical Support Forum

All Things WinBatch => WinBatch => Topic started by: JTaylor on October 23, 2020, 09:49:46 AM

Title: Message() Bug?
Post by: JTaylor on October 23, 2020, 09:49:46 AM
Not sure if this is a bug but thought I would mention it.  If I do something like the following

   message("ITEM", publisher)

and the variable does not exist, the script skips the function with no error or message.   I tried some variations and it seems to be consistent.   It does take a while to pass over it so it is attempting to do something.


Jim
Title: Re: Message() Bug?
Post by: td on October 23, 2020, 09:59:13 AM
Can't reproduce it.  Your line produces the expected 3052 error so don't think it is a "bug".   At least it is not a bug in WinBatch.
Title: Re: Message() Bug?
Post by: JTaylor on October 23, 2020, 10:02:38 AM
Interesting.   Will see if I can narrow it down.

Jim
Title: Re: Message() Bug?
Post by: JTaylor on October 23, 2020, 10:12:43 AM
Nevermind.  It was just me being an idiot.   Had some old error handling code that was masking the error. 

Thanks.

Jim