Hi guys,
In my Catch error, I usually write like this :
catch (Exception::Error)
{
Str1260 errorTxt = "";
int i;
for (i=1; i<=Global::infologLine(); i )
{
infolog.text(i);
errorTxt = errorTxt ";/n" infolog.text(i);
}
.
.
.
}
Then usually I will get that variable errorTxt and insert into my Log table (or just display on screen)
Question is why the errorTxt can contain old error message which is not from my current process ? how to clear the previous and only get the error message of current process ?
An example for this is, before I'm running my process, I'm open some other form and hit some standard error, then few minutes later I'm testing my code, ran and hit some error, but the error message will be started with the previous error before I'm running my code.
Thanks,