Quote:

What is wrong with my code?




@ERROR is a number, so when you use "+" KiXtart will coerce the rest of the line to a numeric type as well.

You need to convert @ERROR to a string first. You can do this either explicitly by using CStr(), or implicitly by starting the expression with a string.

Easiest is something like:
Code:
$Errorcode = "["+@ERROR+"] "+@SERROR