Table of Contents

Set_MFS subroutine

Description

Programmatically attach Modifying Filing Systems (MFS) to specified tables.

Syntax

Set_MFS(tablename, mfslist, action)

Parameters

The Set_MFS subroutine has the following parameters.

ParameterDescription
tablenameTable to which to attach the MFS.
mfslistOne or more (in a list) MFS to add to or remove from the table.
actionAction to take, regarding the MFS list:

1 - Add the MFS list to the end of the chain (just before the Base Filing System (BFS).
2 - Add the MFS list to the beginning of the chain.
3 - Add the MFS list to as close as possible to the front of the chain (just after such system MFSs as PROTECT.MFS and SI.MFS).
4 - Replace the MFSs currently attached to the table, with the list passed in mfslist.
5 - Remove list passed in mfslist, from the table.
6 - Remove all MFSs from the table.

See Also

Define_Database, Chapter 8: Modifying Filing Systems, Installing an MFS

Example

/* Adds RIGHTDEX.MFS to the CAR_ORDERS table, placing it just after system MFSs, in precedence. */

Set_MFS("CAR_ORDERS", "RIGHTDEX.MFS",3)

If Get_Status(ErrCodes) Then
  GoSub ErrorHandling
End