FUNCTION Ing_correlat2()
聽 聽 聽LOCAL oDlg, oDbf, oCbx, oGet, oBtn1, oBtn2, aItems:={ "GRUPOS", "PALLETS", "USUARIOS", "CTRLUSR" }
聽 聽 聽Uso( "CORRELAT", .t. ) //USE Correlat New Exclusive
聽 聽 聽OrdSetFocus("i_base") //1
聽 聽 聽DATABASE oDbf
聽 聽 聽oDbf:SetOrder("i_base") //1
聽 聽 聽oDbf:Blank()
聽 聽 聽DEFINE DIALOG oDlg RESOURCE "DLG_CORREL" TITLE "Ingreso de Correlativo:"
聽 聽 聽 聽 聽 REDEFINE COMBOBOX oCbx VAR oDbf:Base ID 101 ITEMS aItems OF oDlg UPDATE
聽 聽 聽 聽 聽 oCbx:bLostFocus() := { || Cargovar2(oDbf:Base, oDbf, oDlg) } 聽 聽 聽 聽 聽 聽 //<strong>esta es la linea problem谩tica</strong>聽 聽 聽 聽 聽
REDEFINE GET 聽oGet VAR oDbf:Correlat ID 102 OF oDlg PICTURE "999,999,999" UPDATE
聽 聽 聽 聽 聽 REDEFINE BUTTON oBtn1 ID 201 OF oDlg ACTION 聽( oDbf:Save(), MsgInfo( "Correlativo modificado" ) )
聽 聽 聽 聽 聽 REDEFINE BUTTON oBtn2 ID 202 OF oDlg ACTION 聽oDlg:End()
聽 聽 聽ACTIVATE DIALOG oDlg CENTER
聽 聽 聽CLOSE DATA
RETURN NIL
//
FUNCTION Cargovar2(wbase, oDbf, oDlg)
聽 聽 聽oDbf:SetOrder(1)
聽 聽 聽oDbf:Seek(wbase, .f.)
聽 聽 聽IF oDbf:Found()
聽 聽 聽 聽 聽 oDbf:Load()
聽 聽 聽 聽 聽 oDlg:Update()
聽 聽 聽ENDIF
RETURN NILEstoy teniendo dificultades con esta funci贸n, me da un error al compilar sin explicaci贸n y he descubierto que desaparece cuando elimino la l铆nea marcada, si pongo nil en lugar del block de codigo igual da el error, por lo cual no es la funci贸n que llama sino el atributo blostfocus, al menos eso creo.
No tengo problemas de compilar esto con fwh 11.05 pero si con 14.08 si alguien pudiera decirme que cambi贸 o hago mal, lo agradecer茅 ampliamente.
Muchas gracias desde ya
Saludos/Regards,
Jos茅 Murugosa
"Los errores en programaci贸n, siempre est谩n entre la silla, el teclado y la IA!!"
Jos茅 Murugosa
"Los errores en programaci贸n, siempre est谩n entre la silla, el teclado y la IA!!"