Oops :) How can I forgot? :)
>Actually, my boss and Ko just pointed me to AERROR() which does exactly what I need.
>
>Thanks,
>
>Michelle
>
>>Michelle,
>>
>>I undersood, what you mean. Unfortunatelly, there is no such function in VFP.
>>
>>The simplest way to imitate it, though, is:
>>
>>
>>private pcErrMsg
>>on error pcErrMsg=message()
>>error myNumber
>>?pcErrMsg
>>on error
>>
>>
If it's not broken, fix it until it is.
My Blog