Hi everybody!
I've having problems with a memo field. I have an app designed to work in a multiuser environment (via shared files) thru a form that contains a button that in its click event, among other things, enables controls associated with their corresponding fields and executes the following code:
...
begin transaction
append blank
...
Another pair of buttons do their counterpart tasks: depending whether the user decides to cancel the transaction (rollingback and disabling controls code) or accepting it (ending transaction and disabling controls code).
All my tables are buffered in optimistic row mode (mode 3) via dataenvironment properties and the form has no buffer mode.
The form has private data session (value 2 in its property chart).
Everything works fine until one user begins the append transaction, reaches an editbox (associated with a memo field), changes focus out of it while another user begins the same transaction (appending a blank record within a transaction). The second user gets a message in the status bar notifying Record no available ... Please wait.
What am I doing wrong? Have I missed something about VFP concurrent programming? Do I need to make an extensive use of file/record locking within my app? Take away all the buzz of this biz and what do you get? 01000100101010...
I've having problems with a memo field. I have an app designed to work in a multiuser environment (via shared files) thru a form that contains a button that in its click event, among other things, enables controls associated with their corresponding fields and executes the following code:
...
begin transaction
append blank
...
Another pair of buttons do their counterpart tasks: depending whether the user decides to cancel the transaction (rollingback and disabling controls code) or accepting it (ending transaction and disabling controls code).
All my tables are buffered in optimistic row mode (mode 3) via dataenvironment properties and the form has no buffer mode.
The form has private data session (value 2 in its property chart).
Everything works fine until one user begins the append transaction, reaches an editbox (associated with a memo field), changes focus out of it while another user begins the same transaction (appending a blank record within a transaction). The second user gets a message in the status bar notifying Record no available ... Please wait.
What am I doing wrong? Have I missed something about VFP concurrent programming? Do I need to make an extensive use of file/record locking within my app? Take away all the buzz of this biz and what do you get? 01000100101010...