* Method.:txtamt.valid * Modified 12/26/2002 by CWILLIAMS * calculate the total of all non-deleted records * and calulate the total number of records to display * a running total of each for all input * 13=enter key * 24=downarrow LOCAL nKey nKey = LASTKEY() LOCAL lnTmpTotal,lnToCnt lnTemp=RECNO() COUNT FOR !DELETED() TO lnTotCnt lnTmpTotal=0 GO TOP DO WHILE NOT EOF() IF !DELETED() then lnTmpTotal=lnTmpTotal+amt ENDIF SKIP ENDDO GOTO lnTemp WITH ThisForm .txtEnterTotal.VALUE=lnTmpTotal .txtTotRecCnt.VALUE=lnTotCnt ENDWITH * add new record if downarrow or enter key pressed IF nKey= 13 OR nKey= 24 KEYBOARD '{DNARROW}' IF EOF() GO BOTTOM APPEND BLANK ENDIF ENDIF THIS.REFRESH