In the following sample I don't see the changed value if SKIP 0 is commented out:

FUNCTION MAIN()
   USE TEST SHARED
   ? FIELD -> test
   ? "Waiting for a key..."
   INKEY( 0 ) // here the field is changed by another user
//    SKIP 0
   ? FIELD -> test
   CLOSE
   RETURN NIL

Is it expected?

Hi,


yes, of cause. The whole record buffer is written to file after record cursor is "touched". This helps to avoid multiple disk access on:
   FIELD1 := value1
   FIELD2 := value2
   ...
   FIELDn := valuen

Use DBCOMMIT() (or move record pointer DBSKIP(), DBGOTO(), etc.) to force write of record buffer.


Regards,
Mindaugas

_______________________________________________
Harbour mailing list
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to