SYS(2450) - Application Search Path Order

Specifies how an application searches for data and resources such as functions, procedures, executable files, and so on.

You can use SYS(2450) to specify that Visual FoxPro searches within an application for a specific procedure or user-defined function (UDF) before it searches along the SET DEFAULT and SET PATH locations. Setting SYS(2450) can help improve performance for applications that run on a local or wide area network.

SYS(2450 [, 0 | 1 ])

Parameters

  • 0
    Search along path and default locations before searching in the application. (Default)
  • 1
    Search within the application for the specified procedure or UDF before searching the path and default locations.

Return Values

Character data type. Calling SYS(2450) without parameters returns a value of "0" or "1" specifying whether Visual FoxPro searches along the path and default locations before searching in the application or within the application first.

Remarks

You can use SET PROCEDURE to make sure that the file is found before path searching takes place. However, you must call SET PROCEDURE for each file.

See Also

SET DEFAULT Command | SET PATH Command | SET PROCEDURE Command | SYS( ) Functions Overview | DO Command