no encuentro el error(rutina)
Publicado por Hugo (20 intervenciones) el 29/10/2002 04:28:43
*****
select producto
set order to tag codrubro
thisform.optiongroup1.enabled=.f.
a=thisform.text1.value
b=rubro.codrubro
c=val(thisform.text2.value )
y=recno()
DO WHILE .T. && Comienza el bucle
IF EOF( )
cMessageTitle = 'Actualización de Precios'
cMessageText = 'Actualizacion terminada'
nDialogType = 0 + 48 + 0
z = MESSAGEBOX(cMessageText, nDialogType, cMessageTitle)
if z = 1
go y
select rubro
set order to tag codrubro
thisform.refresh
exit
endif
ENDIF
&&******************************************
IF a=b and thisform.optiongroup1.value=1
h=(producto.precio*c)/100+producto.precio
replace producto.precio with h
SKIP
LOOP
ENDIF
&&******************************************
IF a=b and thisform.optiongroup1.value=2
*select producto
*set order to tag codrubro
h=producto.precio-(producto.precio*c)/100
replace producto.precio with h
SKIP
LOOP
ENDIF
SKIP
ENDDO && Termina el bucle
select producto
set order to tag codrubro
thisform.optiongroup1.enabled=.f.
a=thisform.text1.value
b=rubro.codrubro
c=val(thisform.text2.value )
y=recno()
DO WHILE .T. && Comienza el bucle
IF EOF( )
cMessageTitle = 'Actualización de Precios'
cMessageText = 'Actualizacion terminada'
nDialogType = 0 + 48 + 0
z = MESSAGEBOX(cMessageText, nDialogType, cMessageTitle)
if z = 1
go y
select rubro
set order to tag codrubro
thisform.refresh
exit
endif
ENDIF
&&******************************************
IF a=b and thisform.optiongroup1.value=1
h=(producto.precio*c)/100+producto.precio
replace producto.precio with h
SKIP
LOOP
ENDIF
&&******************************************
IF a=b and thisform.optiongroup1.value=2
*select producto
*set order to tag codrubro
h=producto.precio-(producto.precio*c)/100
replace producto.precio with h
SKIP
LOOP
ENDIF
SKIP
ENDDO && Termina el bucle
Valora esta pregunta


0