Hi, i've an accounts application and i've some problems with this. In an instalation the app is locked when executes GOTO BOTTOM and i haven't what this occours.
The code is this:
if Thisformset.lNuevoRealizado=.T.
return
endif
This.valido()
if apuntes.apte < This.maxapte
return
endif
if This.lPermiso=.F.
wait window "APUNTE INCORRECTO..."+chr(13)+"APUNTE INCORRECTO..."+chr(13)+"APUNTE INCORRECTO..." timeout 4
nodefault
return
endif
This.Activalias()
local lnNextApt,cUltiClave,lcFiltro,lnPosicionRegistro
lnPosicionRegistro=recno('apuntes')
lcFiltro=''
lcFiltro=SET('FILTER')
set filter to
lnNextApt=0
GOTO BOTTOM
if This.lUltimoForzado=.F.
This.cargaapunte()
endif
if reccount('apuntes')=0 or Eof('apuntes')
Thisformset.lEstadoApunte()
if This.lEmptyApte=.T.
This.lEmptyApte=.F.
endif
endif
if This.lUltimoForzado=.T.
This.lUltimoForzado=.F.
This.lEmptyApte=.F.
endif
if This.lEmptyApte=.F.
lnNextApt=val(apuntes.apte)
lnNextApt=lnNextApt+1
cUltiClave=padl(alltrim(str(lnNextApt)),8,'0')
INSERT INTO apuntes (apte, diario, asiento, marca3) VALUES(cUltiClave, cFiltroDatos,This.cAsiento," ")
else
cUltiClave=apuntes.apte
endif
This.maxapte=cUltiClave
=TABLEUPDATE(.T.)
if !empty(lcFiltro)
set filter to apuntes.diario=cFiltroDatos
endif
Thisformset.form1.campogen1.refresh()
Thie fails is in GOTO BOTTOM, when is executed the system fails. The buffersmodeoverride y set to 3 and SET MULTILOCKS ON, but then do this, the app is locked, i've to run the tasks and close it the app. Can anyone to explain what is wrong in this ocde ?. Thank you so much
The code is this:
if Thisformset.lNuevoRealizado=.T.
return
endif
This.valido()
if apuntes.apte < This.maxapte
return
endif
if This.lPermiso=.F.
wait window "APUNTE INCORRECTO..."+chr(13)+"APUNTE INCORRECTO..."+chr(13)+"APUNTE INCORRECTO..." timeout 4
nodefault
return
endif
This.Activalias()
local lnNextApt,cUltiClave,lcFiltro,lnPosicionRegistro
lnPosicionRegistro=recno('apuntes')
lcFiltro=''
lcFiltro=SET('FILTER')
set filter to
lnNextApt=0
GOTO BOTTOM
if This.lUltimoForzado=.F.
This.cargaapunte()
endif
if reccount('apuntes')=0 or Eof('apuntes')
Thisformset.lEstadoApunte()
if This.lEmptyApte=.T.
This.lEmptyApte=.F.
endif
endif
if This.lUltimoForzado=.T.
This.lUltimoForzado=.F.
This.lEmptyApte=.F.
endif
if This.lEmptyApte=.F.
lnNextApt=val(apuntes.apte)
lnNextApt=lnNextApt+1
cUltiClave=padl(alltrim(str(lnNextApt)),8,'0')
INSERT INTO apuntes (apte, diario, asiento, marca3) VALUES(cUltiClave, cFiltroDatos,This.cAsiento," ")
else
cUltiClave=apuntes.apte
endif
This.maxapte=cUltiClave
=TABLEUPDATE(.T.)
if !empty(lcFiltro)
set filter to apuntes.diario=cFiltroDatos
endif
Thisformset.form1.campogen1.refresh()
Thie fails is in GOTO BOTTOM, when is executed the system fails. The buffersmodeoverride y set to 3 and SET MULTILOCKS ON, but then do this, the app is locked, i've to run the tasks and close it the app. Can anyone to explain what is wrong in this ocde ?. Thank you so much