Para Daniel Garcia

Para Daniel Garcia

Postby Willi Quintana » Mon Jan 18, 2016 1:16 pm

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
Willi Quintana
 
Posts: 1019
Joined: Sun Oct 09, 2005 10:41 pm
Location: Cusco - Perú

Re: Para Daniel Garcia

Postby Daniel Garcia-Gil » Tue Jan 19, 2016 12:51 am

Willi

habria que determinar que haces especificamente para que se rompa, podrias validar si oItem:nColEnd tiene algun valor
User avatar
Daniel Garcia-Gil
 
Posts: 2365
Joined: Wed Nov 02, 2005 11:46 pm
Location: Isla de Margarita

Re: Para Daniel Garcia

Postby Silvio.Falconi » Tue Jan 19, 2016 9:29 am

Hi Daniel,
Do you made some modifies ( upgrades) on your Plan Class ?
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Silvio.Falconi
 
Posts: 7048
Joined: Thu Oct 18, 2012 7:17 pm

Re: Para Daniel Garcia

Postby Daniel Garcia-Gil » Tue Jan 19, 2016 2:41 pm

Silvio.Falconi wrote:Hi Daniel,
Do you made some modifies ( upgrades) on your Plan Class ?


No
User avatar
Daniel Garcia-Gil
 
Posts: 2365
Joined: Wed Nov 02, 2005 11:46 pm
Location: Isla de Margarita

Re: Para Daniel Garcia

Postby Willi Quintana » Wed Jan 20, 2016 2:24 am

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
Willi Quintana
 
Posts: 1019
Joined: Sun Oct 09, 2005 10:41 pm
Location: Cusco - Perú

Re: Para Daniel Garcia

Postby RenOmaS » Wed Jan 20, 2016 7:32 pm

Podrias modificar
Code: Select all  Expand view

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

skype: americo.balboa
User avatar
RenOmaS
 
Posts: 205
Joined: Fri Oct 07, 2005 5:07 pm


Return to FiveWin para Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 58 guests