FRelPath (LabVIEW Manager Function)

MgErr FRelPath(startPath, endPath, relPath);

Purpose

Computes a relative path between two absolute paths. You can pass the same path variable for the new path that you use for startPath or relPath. Therefore, you can call this function in the following three ways:

  • FRelPath(startPath, endPath, relPath);/* the relative path is returned in a third path variable */
  • FRelPath(startPath, endPath, startPath); /* the new path writes over the old startPath */
  • FRelPath(startPath, endPath, endPath); /* the new path writes over the old endPath */

Parameters

Name Type Description
startPath Path Absolute path from which you want the relative path to be computed.
endPath Path Absolute path to which you want the relative path to be computed.
relPath Path Path returned by fAddPath.

Return Value

MgErr, which can contain the following errors. If you receive errors from LabVIEW Manager functions, most error names correspond to LabVIEW error codes.

Value Corresponding Error Code or Description
noErr No error.
mgArgErr 1
mFullErr 2