how can i stop the delete

MRQMRQ Member Posts: 73
in some case i need tho stop the delete order for some rec if this rec connecting to onther rec i wont to cancel the delete

i write in the OnDelete() event this code but i need to break the delete
 IF Linked THEN BEGIN
 
MESSAGE('this ticket is linked to ticket No : %1',"Link Refrance");
 
// i think i  need to write something here to break the delete

END;

Comments

  • Soft_TodSoft_Tod Member Posts: 43
    Using ERROR(...) instead of MESSAGE(...) should do the trick.
    It is impossible to make anything foolproof, because fools are so ingenious.
  • MRQMRQ Member Posts: 73
    thanx Soft Tod its work \:D/
Sign In or Register to comment.