Error extraño con un Get
Posted: Wed Oct 18, 2006 12:46 pm
En ocasiones cuando intento ingresar información me da este error javascript:emoticon(':(')
Sad
Application
===========
Path and name: C:\DATASOL\Datasol.Exe (32 bits)
Size: 2,958,848 bytes
Time from start: 0 hours 0 mins 47 secs
Error occurred at: 18/10/2006, 09:29:26
Error description: Error BASE/1068 Argument error: array access
Args:
[ 1] = U
[ 2] = U
Stack Calls
===========
Called from: tget.prg => TCLIPGET:DELETE(1535)
Called from: TGET.PRG => TBTNGET:KEYDOWN(724)
Called from: WINDOW.PRG => TWINDOW:HANDLEEVENT(0)
Called from: CONTROL.PRG => TBTNGET:HANDLEEVENT(0)
Called from: WINDOW.PRG => _FWH(3114)
Called from: => DIALOGBOX(0)
Called from: DIALOG.PRG => TDIALOG:ACTIVATE(254)
Called from: FACTURA.PRG => FACTURAR(534)
Called from: GEST.PRG => (b)EVAL(403)
Called from: GEST.PRG => EJECUTO(1144)
Called from: GEST.PRG => (b)MENUPRINCIPAL(403)
Called from: TSBUTTON.PRG => TSBUTTON:CLICK(804)
Called from: CONTROL.PRG => TCONTROL:HANDLEEVENT(0)
Called from: TSBUTTON.PRG => TSBUTTON:HANDLEEVENT(1308)
Called from: WINDOW.PRG => _FWH(3114)
Called from: => WINRUN(0)
Called from: WINDOW.PRG => TWINDOW:ACTIVATE(878)
Called from: GEST.PRG => MENUPRINCIPAL(452)
Called from: GEST.PRG => MAIN(232)
///Aquí está el código
REDEFINE BTNGET oGET[5] VAR oVAR[5] ID 106 of oDlgF PICTURE "999" ;
RESOURCE "LUPA" SPINNER ;
ON UP (++oVar[5],oGet[5]:Refresh(),FUNBUSCLI(oVar,oSayP,"VEN",3,5,@lOkVen,1)) ;
ON DOWN (--oVar[5],oGet[5]:Refresh(),FUNBUSCLI(oVar,oSayP,"VEN",3,5,@lOkVen,1)) ;
ACTION (oVar[5]:=0,FbProv(@oGet,@oVar,4,oSayP,5,lMod)) ;
Valid FUNBUSCLI(oVar,oSayP,"VEN",3,5,@lOkVen,1)
oGet[5]:bGotFocus:={ || oGet[5]:SelectAll() }
La variable es de Numérica
El problema es que no siempre da el error, y pueden pasar días sin problemas.
Un saludo cordial
Ricardo
Sad
Application
===========
Path and name: C:\DATASOL\Datasol.Exe (32 bits)
Size: 2,958,848 bytes
Time from start: 0 hours 0 mins 47 secs
Error occurred at: 18/10/2006, 09:29:26
Error description: Error BASE/1068 Argument error: array access
Args:
[ 1] = U
[ 2] = U
Stack Calls
===========
Called from: tget.prg => TCLIPGET:DELETE(1535)
Called from: TGET.PRG => TBTNGET:KEYDOWN(724)
Called from: WINDOW.PRG => TWINDOW:HANDLEEVENT(0)
Called from: CONTROL.PRG => TBTNGET:HANDLEEVENT(0)
Called from: WINDOW.PRG => _FWH(3114)
Called from: => DIALOGBOX(0)
Called from: DIALOG.PRG => TDIALOG:ACTIVATE(254)
Called from: FACTURA.PRG => FACTURAR(534)
Called from: GEST.PRG => (b)EVAL(403)
Called from: GEST.PRG => EJECUTO(1144)
Called from: GEST.PRG => (b)MENUPRINCIPAL(403)
Called from: TSBUTTON.PRG => TSBUTTON:CLICK(804)
Called from: CONTROL.PRG => TCONTROL:HANDLEEVENT(0)
Called from: TSBUTTON.PRG => TSBUTTON:HANDLEEVENT(1308)
Called from: WINDOW.PRG => _FWH(3114)
Called from: => WINRUN(0)
Called from: WINDOW.PRG => TWINDOW:ACTIVATE(878)
Called from: GEST.PRG => MENUPRINCIPAL(452)
Called from: GEST.PRG => MAIN(232)
///Aquí está el código
REDEFINE BTNGET oGET[5] VAR oVAR[5] ID 106 of oDlgF PICTURE "999" ;
RESOURCE "LUPA" SPINNER ;
ON UP (++oVar[5],oGet[5]:Refresh(),FUNBUSCLI(oVar,oSayP,"VEN",3,5,@lOkVen,1)) ;
ON DOWN (--oVar[5],oGet[5]:Refresh(),FUNBUSCLI(oVar,oSayP,"VEN",3,5,@lOkVen,1)) ;
ACTION (oVar[5]:=0,FbProv(@oGet,@oVar,4,oSayP,5,lMod)) ;
Valid FUNBUSCLI(oVar,oSayP,"VEN",3,5,@lOkVen,1)
oGet[5]:bGotFocus:={ || oGet[5]:SelectAll() }
La variable es de Numérica
El problema es que no siempre da el error, y pueden pasar días sin problemas.
Un saludo cordial
Ricardo