In order for this site to work correctly we need to store a small file (called a cookie) on your computer. Most every site in the world does this, however since the 25th of May 2011, by law we have to get your permission first. Please abandon the forum if you disagree.

Para que este foro funcione correctamente es necesario guardar un pequeño fichero (llamado cookie) en su ordenador. La mayoría de los sitios de Internet lo hacen, no obstante desde el 25 de Marzo de 2011 y por ley, necesitamos de su permiso con antelación. Abandone este foro si no está conforme.

NewError()

Xailer English public forum
Responder
Nick Hilder
Mensajes: 328
Registrado: Mar Nov 21, 2006 2:10 am

NewError()

Mensaje 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
Avatar de Usuario
ignacio
Site Admin
Mensajes: 9441
Registrado: Lun Abr 06, 2015 8:00 pm
Ubicación: Madrid, Spain
Contactar:

NewError()

Mensaje 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
>
Ignacio Ortiz de Zúñiga
[OZ Software]
https://www.ozs.es
--
[Equipo de Xailer / Xailer team]
https://www.xailer.com
Responder