Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

FRelPath (CIN Function)

LabVIEW 8.5 Help
August 2007

NI Part Number:
371361D-01

»View Product Info

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 CIN functions, most error names correspond to LabVIEW error codes.

Value Corresponding Error Code or Description
noErrNo error.
mgArgErr1
mFullErr2

Resources


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit