Sometimes, we need to be protected from ourselves

press = str(event.source.parent.getComponent('Table').press)
dieNum = int(event.source.parent.getComponent('Table').WintrissTool)
desc = str(event.source.parent.getComponent('Table').Description)
ndx=int(event.source.parent.getComponent('Table').ndx)
if ndx > 0
  if system.gui.confirm("Are you sure you want to remove this die?", "Remove Die?"):
    if system.gui.confirm("<html>Are you REALLY SURE you want to remove THIS die?<br>Press: %s<br>Tool Number: %d<br>Desc.: %s" % (press,dieNum,desc), "REALLY Remove Die?"):
      if system.gui.confirm("<html>Look, I can understand if you don't really want to. It's a bit of a commitment and there's no going back...", "REALLY REALLY PINKY SWEAR Remove Die?"):
        system.db.runUpdateQuery("DELETE FROM stamping_die_info WHERE ndx=%d" % (ndx), "Production")
        system.gui.messageBox("<html>OK, it's removed. Don't say I didn't warn you...", "Die Removed")
else:
  system.gui.messageBox("No die selected")

+1 for pinky swear. :smiley: