Página 1 de 1

NewError()

Publicado: Mié Nov 29, 2006 10:20 pm
por Nick Hilder
Hi
When I use the xh function NewError() I seem to get things appear in the
wrong spot in the trace that xailer generates. I have never used this before
so it's probably just something I'm doing
Here's my code, I used literal values to see how it worked
ErrorNew("Subsystem", 0, "Operation", Description", "Args", "Modulename")
Subsystem Call: SubSystem
System Code: Operation
Default Status: .F.
Description: Args
Operation: Description
Arguments:
Involved File:
Dos Error Code: 0
Description has Args in it for example?
Operation has Description etc etc
Thanks
Nick

NewError()

Publicado: Jue Nov 30, 2006 10:02 am
por ignacio
Nick,
That is a xHarbour function, and we have not modified it on any manner, you
should better ask in xHarbour forum about its correct parameters.
BTW, I have never used that way. Try something like this:
WITH OBJECT ErrorNew()
:GenCode := ...
:SubCode := ...
:Description := ...
:FileName := ...
:CanDefault := ...
Eval( ErrorBlock(), HB_QWith() )
END WITH
Regards,
--
Ignacio Ortiz de Zúñiga
http://www.xailer.com
"Nick Hilder" <nick_Nospam#$%@capsol.com%NOSPAM%.au> escribió en el mensaje
news:[email=456df97d@news.xailer.com...]456df97d@news.xailer.com...[/email]
> Hi
>
> When I use the xh function NewError() I seem to get things appear in the
> wrong spot in the trace that xailer generates. I have never used this
> before so it's probably just something I'm doing
>
> Here's my code, I used literal values to see how it worked
>
> ErrorNew("Subsystem", 0, "Operation", Description", "Args", "Modulename")
>
>
> Subsystem Call: SubSystem
> System Code: Operation
> Default Status: .F.
> Description: Args
> Operation: Description
> Arguments:
> Involved File:
> Dos Error Code: 0
>
>
> Description has Args in it for example?
> Operation has Description etc etc
>
> Thanks
>
> Nick
>