Nice Thanks. Sometimes Delete $!!ce.type mem is not working
It will not work sometimes if the callback "Delete $!!ce.type mem" is directly assign to a button gadget. Reason is that once the button gadget has been click to run the callback, TYPE of the element in the callback became fixed and will not change even if you change the Current Element. Example; Your CE is EQUI, button callback will be fixed to: DELETE EQUI MEM
If you want to Delete another element TYPE for example; STRU - this comes the error because the button callback is set to EQUI. In order to fixed the issue, you need to place the callback "Delete $!!ce.type mem" within the method for PML-2 or create a separate file for callback and just run the macro $M for PML-1.
[QUOTE=rhel;116610]It will not work sometimes if the callback "Delete $!!ce.type mem" is directly assign to a button gadget. Reason is that once the button gadget has been click to run the callback, TYPE of the element in the callback became fixed and will not change even if you change the Current Element. Example; Your CE is EQUI, button callback will be fixed to: DELETE EQUI MEM
If you want to Delete another element TYPE for example; STRU - this comes the error because the button callback is set to EQUI. In order to fixed the issue, you need to place the callback "Delete $!!ce.type mem" within the method for PML-2 or create a separate file for callback and just run the macro $M for PML-1.