With VFP 9
I am working on a module that allows the end user to delete an index tag.
With SET SAFETY ON, VFP issues a warning when the user attempts to delete a "Primary" or "Candidate" index tag. The warning asks if the user wants to delete it anyway.
I want to prevent the user from deleting a Primary or Candidate index tag so I'd like intercept the attempt before issuing DELETE TAG. Is its possible to test for that condition?
Thanks in advance.
-- Chuck
I am working on a module that allows the end user to delete an index tag.
With SET SAFETY ON, VFP issues a warning when the user attempts to delete a "Primary" or "Candidate" index tag. The warning asks if the user wants to delete it anyway.
I want to prevent the user from deleting a Primary or Candidate index tag so I'd like intercept the attempt before issuing DELETE TAG. Is its possible to test for that condition?
Code:
DO CASE
CASE cTAG = "NO ORDER" && Do Nothing
OTHERWISE && Delete Index Tag.
USE
USE (myTable) EXCLUSIVE
DELETE TAG &myTAG
USE
USE (myTable)
ENDCASE
Thanks in advance.
-- Chuck