General information
Category:
Coding, syntax & commands
Title:
Rollback transaction... tablerevert needed?
Using vfp5...
in the click method of a "save" button
begin transaction
replace status.numemployees with status.numemployees + 1
tableupdate(.t.,.t.)
if thisform.text1.value > 0 then
replace employee.age with thisform.text1.value
tableupdate(.t.,.t.)
else
rollback
return
end transaction
Question is... do I need a tablerevert before the "rollback" to return "status" to it's original
state or will the rollback handle it?
Note: I know the logic in this example is bad but it is just to demonstrate my point.
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