Para Daniel Garcia

Post Reply
User avatar
Willi Quintana
Posts: 859
Joined: Sun Oct 09, 2005 10:41 pm
Location: Cusco - Perú
Contact:

Para Daniel Garcia

Post by Willi Quintana »

Hola Daniel,
Uso TPlann, para ver un tema de reservas,, alguinas veces sale este error:

Error description: Error BASE/1092 Error de argumento: MIN
Args:
[ 1] = U
[ 2] = N 577.50

Stack Calls
===========
Called from: => MIN( 0 )
Called from: D:\PRGS\SHOTEL\PRG\TPLANN.PRG => TPLANNING:DATADROPAVAILABLE( 405 )
Called from: D:\PRGS\SHOTEL\PRG\TPLANN.PRG => TPLANNING:LBUTTONUP( 701 )

es en esta línea
n = max(0, min(oItem:nColEnd,oData:nNewColEnd) - max(oItem:nColStart,oData:nNewColStart))

Cómo solucionar??
Gracias anticipadas...
Willi
User avatar
Daniel Garcia-Gil
Posts: 2365
Joined: Wed Nov 02, 2005 11:46 pm
Location: Isla de Margarita
Contact:

Re: Para Daniel Garcia

Post by Daniel Garcia-Gil »

Willi

habria que determinar que haces especificamente para que se rompa, podrias validar si oItem:nColEnd tiene algun valor
our best documentation is the source code
Isla de Margarita Venezuela.
danielgarciagil@gmail.com
http://tdolphin.blogspot.com/
https://www.dropbox.com/referrals/NTI5N ... rc=global9
User avatar
Silvio.Falconi
Posts: 4956
Joined: Thu Oct 18, 2012 7:17 pm

Re: Para Daniel Garcia

Post by Silvio.Falconi »

Hi Daniel,
Do you made some modifies ( upgrades) on your Plan Class ?
I use : FiveWin for Harbour August 2020 (Revision) - Harbour 3.2.0dev (r1712141320) - Bcc7.30 - xMate ver. 1.15.3 - PellesC
User avatar
Daniel Garcia-Gil
Posts: 2365
Joined: Wed Nov 02, 2005 11:46 pm
Location: Isla de Margarita
Contact:

Re: Para Daniel Garcia

Post by Daniel Garcia-Gil »

Silvio.Falconi wrote:Hi Daniel,
Do you made some modifies ( upgrades) on your Plan Class ?
No
our best documentation is the source code
Isla de Margarita Venezuela.
danielgarciagil@gmail.com
http://tdolphin.blogspot.com/
https://www.dropbox.com/referrals/NTI5N ... rc=global9
User avatar
Willi Quintana
Posts: 859
Joined: Sun Oct 09, 2005 10:41 pm
Location: Cusco - Perú
Contact:

Re: Para Daniel Garcia

Post by Willi Quintana »

Hola Daniel,, gracias por contestar.... el error sale cuando pretendo mover un dato, o sea al usar el MoveReservation y oItem:nColEnd tiene valores mayores a 100, dependiendo de su ubicación, pero esto es aleatorio...
Salu2
User avatar
RenOmaS
Posts: 205
Joined: Fri Oct 07, 2005 5:07 pm

Re: Para Daniel Garcia

Post by RenOmaS »

Podrias modificar

Code: Select all

DEFAULT oItem:nColEnd := 1
n = max(0, min(oItem:nColEnd,oData:nNewColEnd) - max(oItem:nColStart,oData:nNewColStart))
 
Saludos/regards
RenOmaS

skype: americo.balboa
Post Reply