home *** CD-ROM | disk | FTP | other *** search
- ********************
-
- PROCEDURE Array_act
-
- PARAMETER _whattodo, _wwhat, _andwhere, _theposit
-
- * _whattodo is the logical toggle
- * _wwhat is the name of the field to perform action on
- * _andwhere is the name of the array to be worked with
- * _theposit is the subecript position of that array
-
- IF TYPE(_wwhat) != TYPE("_andwhere[_theposit]") .AND. TYPE("_andwhere[_theposit]") != "U"
- IF TYPE("_andwhere[_theposit]") = "C" .AND. TYPE(_wwhat) = "M"
- IF _whattodo
- REPLACE &_wwhat WITH _andwhere[_theposit]
- ELSE
- STORE &_wwhat TO _andwhere[_theposit]
- ENDIF
- ENDIF
- ELSE
- IF _whattodo
- IF TYPE("_andwhere[_theposit]") = "U"
- ELSE
- REPLACE &_wwhat WITH _andwhere[_theposit]
- ENDIF
- ELSE
- STORE &_wwhat TO _andwhere[_theposit]
- ENDIF
- ENDIF
-
- * End of File
-
-