Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
This looks like a typo to me
Message
 
 
À
04/01/2006 16:30:09
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01083288
Message ID:
01083333
Vues:
9
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform