>> FOR m.nFld = 1 TO FCOUNT() && <----- is where it returns 2 and I know the table only has 1 field >> IF TYPE(FIELD(m.nFld)) = "G" &&skip for General fields >> LOOP >> ENDIF >> IF OLDVAL(FIELD(m.nFld)) # CURVAL(FIELD(m.nFld)) >> m.lHadMessage = .T. >> IF MESSAGEBOX(E_DIRTYREC_LOC,4+48) = MSGBOX_YES >> >>>
>FOR m.nFld = 1 TO FCOUNT([CAalias]) && <----- is where it returns 2 and I know the table only has 1 field > IF TYPE(FIELD(m.nFld,[CAalias])) = "G" &&skip for General fields > LOOP > ENDIF > IF OLDVAL(FIELD(m.nFld,[CAalias]),[CAalias]) # CURVAL(FIELD(m.nFld,[CAalias]),[CAalias]) > m.lHadMessage = .T. > IF MESSAGEBOX(E_DIRTYREC_LOC,4+48) = MSGBOX_YES >This is wizard code, I do not want to mess with it too much. I put the alias in there, and I still get 2 for fcount where it should be 1.