You can also deactivate an index from an ABL procedure. Search through the _Index file to find the index you want to deactivate, then set the _Active field equal to NO. The following example uses this technique:

FIND _Index WHERE _Index-Name = "cust-num".
  IF (_Index._Active) THEN
    _Index._Active = FALSE.
  ELSE IF NOT(_Index._Active) THEN
    MESSAGE "The specified index is Deactivated.".