pregunta del formulario vf
1. código de evento de inicio del formulario
public nadd,ntime
thisform.text1.value=0 &&Inicializar el tipo de datos de entrada text1
thisform.label1.caption="Ingrese el número acumulativo"
thisform.label2.caption=""
thisform.label3.caption=""
nadd=0 &&Inicializar variable de almacenamiento acumulativo
ntime=0 &&Inicializar variable de almacenamiento de veces
2.command1 haga clic en código de evento
nadd=nadd+thisform.text1 .value
ntime=ntime+1
thisform.label2.caption=alltrim(str(nadd))
thisform.label3.caption=alltrim(str (ntime ))
thisform.text1.value=0 &&la acumulación se completa y el texto1 se borra
thisform.text1.selectonentry=.t &&Obtenga el foco y seleccione todo
.