THISFORM.combo3.enabled=.f.
THISFORM.combo4.enabled=.f.
THISFORM.combo5.enabled=.f.
thisform.txtarticulo.Enabled=.t.
SELECT 1
USE remito.dbf IN 1 ALIAS xrem shared
*shared significa compartido*
SET ORDER TO nro
GO TOP
thisform.grid3.enabled =.t.
thisform.grid3.recordsource = "xrem"
*thisform.form1.recordsource = "xrem"
************************************************************
SELECT 2
USE art1rem.dbf IN 2 ALIAS xart1rem shared
Thisform.grid1.recordSource="xart1rem"
THISFORM.GRID1.Refresh
****************************************************
SELECT 4
USE articulosm.dbf IN 4 ALIAS xartm shared
*shared significa compartido*
SET ORDER TO codart
GO top
*SET MULTILOCKS ON
*CURSORSETPROP("Buffering", 5, "xart1rem")
*thisform.grid2.visible =.f.
*thisform.grid2.recordsource = "xartm"
thisform.check1.Visible=.t.
thisform.check1.Enabled=.f.
thisform.txttipo.Enabled=.f.
thisform.txttxr.Enabled=.f.
thisform.txtpventa.Enabled=.f.
thisform.txtnro.Enabled=.f.
thisform.txtnrocomb.Enabled=.f.
thisform.txtsr.Enabled=.f.
thisform.txtdni.Enabled=.f.
thisform.txtnombre.Enabled=.f.
thisform.txtdireccion.Enabled=.f.
thisform.txtciudad.Enabled=.f.
thisform.txtform_pago.Enabled=.f.
thisform.txttipo_op.Enabled=.f.
thisform.txtcantcuotas.Enabled=.f.
thisform.txtvalorcuota.Enabled=.f.
thisform.txtcostodol.Enabled=.f.
thisform.txtcotizdolar.Enabled=.f.
thisform.txtcostopesos.Enabled=.f.
thisform.txtsubtsd.Enabled=.f.
thisform.txtsubtotal.Enabled=.f.
thisform.txtimpuestos.Enabled=.f.
thisform.txtsubtcimp.Enabled=.f.
thisform.txtganancia.Enabled=.f.
thisform.txtiva.Enabled=.f.
thisform.txttipo_op.Enabled=.f.
thisform.txtform_pago.Enabled=.f.
thisform.txtdesct.Enabled=.f.
thisform.txtdescpesos.Enabled=.f.
thisform.txttotal.Enabled=.f.
thisform.txtobserv.Enabled=.f.
thisform.txtgom.Enabled=.f.
SET FILTER TO nrocomb == ThisForm.txtnrocomb.Value IN "xart1rem"
*Aqui hago un click en el grid3 para que tome el encabezado delos campos
thisform.grid3.Click
thisform.txtarticulo.Enabled=.f.
*thisform.txtcant.Value=1
*para poner todo en enabled=.t.
*thisform.volver.Click
*IF thisform.check1.Value=1
thisform.numerico2.visible=.f.
thisform.alfabetico2.visible=.f.
thisform.texto11.visible=.f.
thisform.documento2.visible=.f.
*PUBLIC xf as Character
*xf=""
*xf="c:\prgneg\logo.jpg"
*thisform.image1.Picture=xf
SELECT 8
USE datoslogo.dbf IN 8 ALIAS xlogo shared
datoslogo=""
*xf=""
thisform.txtdatoslogo.Value=datoslogo
xf=logo
thisform.image1.Picture=xf
SELECT 11
USE clientes.dbf IN 11 ALIAS xcli shared
Thisform.o_combobox1.Enabled=.f.
thisform.alfabetico1.visible=.f.
thisform.numerico1.visible=.f.
thisform.texto10.visible=.f.
thisform.documento1.visible=.f.
thisform.grid1.Enabled=.t.
thisform.guardar.Enabled=.f.
thisform.volver.Enabled=.f.
thisform.nuevo.Enabled=.t.
thisform.editar.Enabled=.f.
thisform.borrar.Enabled=.f.
thisform.imprimir.Enabled=.f.
*thisform.guardar.enabled=.f.
*thisform.guardamod.enabled=.f.
thisform.texto1.Value=DATE()
SELECT 9
USE cotizdolar.dbf IN 9 ALIAS xcotd SHARED
GO BOTTOM
thisform.txtcotizdolar.value=cotizdolar
SELECT 44
USE artmtempo.dbf IN 44 ALIAS xartmt SHARED