home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 5 / 05.iso / a / a075 / 1.img / TOOLKIT1.EXE / SST126.PRG < prev    next >
Encoding:
Text File  |  1989-09-01  |  922 b   |  34 lines

  1. ********************
  2.  
  3. PROCEDURE Array_act
  4.  
  5.    PARAMETER _whattodo, _wwhat, _andwhere, _theposit
  6.  
  7.    * _whattodo is the logical toggle
  8.    * _wwhat is the name of the field to perform action on
  9.    * _andwhere is the name of the array to be worked with
  10.    * _theposit is the subecript position of that array
  11.  
  12.    IF TYPE(_wwhat) != TYPE("_andwhere[_theposit]") .AND. TYPE("_andwhere[_theposit]") != "U"
  13.       IF TYPE("_andwhere[_theposit]") = "C" .AND. TYPE(_wwhat) = "M"
  14.          IF _whattodo
  15.             REPLACE &_wwhat WITH _andwhere[_theposit]
  16.          ELSE
  17.             STORE &_wwhat TO _andwhere[_theposit]
  18.          ENDIF
  19.       ENDIF
  20.    ELSE
  21.       IF _whattodo
  22.          IF TYPE("_andwhere[_theposit]") = "U"
  23.          ELSE
  24.             REPLACE &_wwhat WITH _andwhere[_theposit]
  25.          ENDIF
  26.       ELSE
  27.          STORE &_wwhat TO _andwhere[_theposit]
  28.       ENDIF
  29.    ENDIF
  30.  
  31. * End of File
  32.  
  33.  
  34.