>WHERE do you believe the typo is???????
>
>
Here: TYPE("laError[xx,4]")
it should be TYPE("this.aErrorInfo[4]")
My colleague also didn't notice it before my explanation. But it's obvious by looking into the whole method code, because down bellow he has similar code referencing type("this.aErrorInfo[5]"), etc.
I guess I should have posted more code.
>
>
>>Hi everybody,
>>
>>I've decided to take a look into MereMortals Error Handler, because we're unsatisfied with the error log information. Here is the code from the top of the CreateErrorLogEntry method
>>
>>
>>DO CASE
>> CASE ISNULL(This.aErrorInfo[4])
>> lcAError4 = '.NULL.'
>> CASE TYPE("laError[xx,4]") = "C"
>> lcAError4 = This.aErrorInfo[4]
>> CASE type("laError[xx,4]") = "N"
>> lcAError4 = ALLTRIM(STR(This.aErrorInfo[4]))
>> OTHERWISE
>> lcAError4 = 'Unknown Error'
>>ENDCASE
>>
>>It looks like it is a typo and it should be referencing this.aErrorInfo[4] instead.
>>
>>Could you please check this method and let me know, if you think it's a typo and should be corrected?
>>
>>Thanks in advance.
If it's not broken, fix it until it is.
My Blog