Page 1 of 1

DATABASE con Campos numericos y PICTURE

Posted: Mon Sep 25, 2006 9:34 pm
by joseluisysturiz
Hola a todos, cuando uso la DATABASE con campos numericos y los traigo a oGET VAR oDbf:variable ID nn PICTURE "999,999,999.99", mde da un error en ejecucion de STR, _ de mi DBF son numericos, alguien le ha pasado esto o lo ha resuelto...gracias...

REDEFINE GET oGET2[10] VAR oDbf:inv_cangru ID 111 PICTURE "999,999.99" OF oDlgFProdu UPDATE

asi lo tengo, si uso una variable que no local esto si no da error.

Posted: Tue Sep 26, 2006 8:53 am
by Antonio Linares
Jose Luis,

Puedes poner aqui la lista de llamada de funciones que te aparece en el error ? gracias

Posted: Wed Sep 27, 2006 4:09 pm
by joseluisysturiz
Antonio Linares wrote:Jose Luis,

Puedes poner aqui la lista de llamada de funciones que te aparece en el error ? gracias
Antonio, use o no valid da el mismo error, cuando uso var local no me da el error, lo ejecutare para copiar el error exactamente, si le quito el PICTURE entonces no da error.

Posted: Thu Sep 28, 2006 8:20 pm
by joseluisysturiz
Antonio aca dejo el error que me da desde el arcivo .log, estoy usando FWH 2.4
Application
===========
Path and name: C:\SISINGE\FARMACIA\FARMACIA.EXE (32 bits)
Size: 1,267,712 bytes
Time from start: 0 hours 1 mins 27 secs
Error occurred at: 28/09/2006, 08:55:30
Error description: Error BASE/1110 Argument error: SUBSTR
Args:
[ 1] = U
[ 2] = N 1
[ 3] = N 1

Stack Calls
===========
Called from SUBSTR(0)
Called from GET:UNTRANSFORM(604)
Called from TGET:LOSTFOCUS(0)
Called from TCONTROL:KILLFOCUS(0)
Called from TCONTROL:HANDLEEVENT(0)
Called from _FWH(0)
Called from DIALOGBOX(0)
Called from TDIALOG:ACTIVATE(0)
Called from FCOMPRA(467)
Called from EVAL(57)
Called from TBTNBMP:CLICK(0)
Called from TWINDOW:LBUTTONUP(0)
Called from TWINDOW:HANDLEEVENT(0)
Called from TWINDOW:HANDLEEVENT(0)
Called from _FWH(0)
Called from DIALOGBOX(0)
Called from TDIALOG:ACTIVATE(0)
Called from BRWCOMPRA(99)
Called from EVAL(74)
Called from TBTNBMP:CLICK(0)
Called from TWINDOW:LBUTTONUP(0)
Called from TWINDOW:HANDLEEVENT(0)
Called from TWINDOW:HANDLEEVENT(0)
Called from _FWH(0)
Called from WINRUN(0)
Called from TWINDOW:ACTIVATE(0)
Called from MAIN(104)

System
======
CPU type: Pentium II 233 Mhz
Hardware memory: 96 megs

Free System resources: 74 %
GDI resources: 74 %
User resources: 77 %

Compiler version: Harbour Alpha build 43.0 Intl. (Flex)
Windows version: 4.10, Build 67766446 A

Windows total applications running: 0

Posted: Thu Sep 28, 2006 9:13 pm
by Antonio Linares
Jose Luis,

Estás usando unas versiones bastante antiguas ya de FWH y de Harbour. Ese error se corrigió en Harbour, si no recuerdo mal.