emaduddeen
Programmer
Hi Everyone.
I get a false message: This record was changed or deleted by another station
I am not using a network and have only one instance of my app running.
I believe the problem is becase of my use in a put statement in my code.
In the "after file open" embed is this code from an update procedure:
In the "after insert" embed of a browse I have this code:
I think I am using the wrong statements here. In the app I add a row into the inventory table. Then some code updates a number that increments by 1 or more. This code stores that changed number into the catetories table. If I keep the browse window open and click on the change button or the insert button, etc I get the "This record was changed or deleted by another station" message. If I close the window and re-open it I can change or insert, etc ok.
Please tell me what is wrong with the code.
Thanks.
Emad
I get a false message: This record was changed or deleted by another station
I am not using a network and have only one instance of my app running.
I believe the problem is becase of my use in a put statement in my code.
In the "after file open" embed is this code from an update procedure:
Code:
! Set up defaults.
!-----------------
CASE ThisWindow.Request
OF InsertRecord
! Adjust the new catatory number.
!--------------------------------
CAT:Category = INV:Category
Get (Categories, CAT:KeyCategory)
INV:CategoryNumber = CAT:CategoryNumber + 1
INV:Markup = CAT:Markup
INV:MaxDiscount = CAT:MaxDiscount
Display()
End
In the "after insert" embed of a browse I have this code:
Code:
! Update the category with the new catatory number.
!--------------------------------------------------
If GlobalResponse = RequestCompleted |
Then
CAT:Category = INV:Category
Get (Categories, CAT:KeyCategory)
CAT:CategoryNumber = INV:CategoryNumber
Put (Categories)
END
I think I am using the wrong statements here. In the app I add a row into the inventory table. Then some code updates a number that increments by 1 or more. This code stores that changed number into the catetories table. If I keep the browse window open and click on the change button or the insert button, etc I get the "This record was changed or deleted by another station" message. If I close the window and re-open it I can change or insert, etc ok.
Please tell me what is wrong with the code.
Thanks.
Emad