Did you Requery the View after the change?
John
>I have a grid in a container populated by a local view. If the user adds a record with the Add button (APPEND BLANK, REPLACE...) all is fine. The user enters an amount, say 4000.
>
>If the user clicks on the "Cancel" button I do a TABLEREVERT(.T.,lcTableName). All seems to be fine. The grid doesn't show any records.
>OK so far. RECC()=0 RECN()=1
>
>If the user now clicks on Add, the new record has the values of the original TABLEREVERTed record (4000) !
>If I now bring up the Debugger, it shows RECC()=1 RECN()=-1.
>
>If I now minimize the debugger the grid doesn't show any records and RECC()=1 RECN()=2 !
>
>If the user clicks Add again and fills in a value, RECC()=2 RECN()=-2 ! With only 1 record showing!
>
>What happens after TABLEVERERT(), where are the entered values stored ?
>After the TABLEREVERT and APPEND BLANK what am I seeing?
>Anyone have any ideas?
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only