xHarbour Reference Documentation > Function Reference xHarbour Developers Network  

TrueName()

Completes a relative path to include the root directory.

Syntax

TrueName( <cPath> ) --> cRoot

Arguments

<cPath>
A character string holding a valid path specification like "." or "..\..\".

Return

The function returns a character string containing a full path name beginning from the root directory. If <cPath> is invalid, the return value is a null string ("").

Info

See also:AfterAtNum(), Token()
Category: CT:DiskUtil , Directory functions
Source:ct\disk.c
LIB:xhb.lib
DLL:xhbdll.dll

Example

// The example shows the result of TrueName()

   PROCEDURE Main

      ? TrueName( "..\lib" )   // result: C:\xhb\lib

      ? TrueName( "..\..\dll\xhbdll.dll" )
                               // result: C:\xhb\dll\xhbdll.dll
   RETURN

Copyright © 2006-2007 xHarbour.com Inc. All rights reserved.
http://www.xHarbour.com
Created by docmaker.exe