Skip to content
Pete edited this page Dec 15, 2016 · 16 revisions

Home

  • hb_PathJoin(<cPathAbsolute>, <cPathRelative>) → cResultPath
    attempts to, safely, join the given paths to form a unified one.
    If <cPathRelative> is not string the returned value is null string ""
    otherwise,
    returns: <cPathRelative> when it includes a drive letter or starts with a path delimiter (e.g. :\/) or when <cPathAbsolute> is empty or not path or not string;
    otherwise,
    returns: <cPathAbsolute> properly joined with the <cPathRelelative> at the end. Both paths should be ending with path-separators, in order to be joined correctly. (to ensure this, use hb_DirSepAdd() if needed).

  • hb_PIsByRef( <nParam> ) → lIsByRef
    returns .T. if the nParam is passed by reference.

  • hb_PRead( <nPipeHandle>, <@cBuffer>, [<nBytes>], [<nTimeOut>] ) → nBytesRead
    It can be used for unblocking read from pipes, i.e. using handles returned by hb_processOpen() function. <nPipeHandle> is pipe read handle, <cBuffer> is string variable passed by reference with read buffer, <nBytes> is maximum number of bytes which can be read, <nTimeOut> is timeout in milliseconds to wait for data to read;
    this function returns when at least one byte can be read. Returned <nBytesRead> is number of bytes read from the pipe. On error return -1.

  • hb_processClose( <hProcess> , [lGentle] ) → lSuccess
    closes an opened process.

  • hb_processOpen( <cCommand>, [ @<cStdIn> ], [ @<cStdOut> ], [ @<cStdErr> ], [ <lDetach> ], [@PID] ) → hProcess

  • hb_ProcessRun( <cCommand>, [ <cStdIn> ], [ @<cStdOut> ], [ @<cStdErr> ], [ <lDetach> ] ) → nResult

  • hb_processValue( <hProcess> , [lWait] ) → nStatus

  • hb_ProgName() → cExeName
    returns the executable program name.

  • hb_ps() → OSpathSepator
    returns the character used as path separator; usually backslash \ on Windows, slash / on *nixes.

  • hb_PValue( <nParam> [, <uNewValue> ] ) → uValue
    returns the value passed in the <nParam> parameter and optionally assigns a new value to it. It returns the current (not the original passed) parameter value.

  • hb_PWrite( <nPipeHandle>, <cBuffer>, [<nBytes>], [<nTimeOut>] ) → nBytesWritten

TODO: hb_PathNormalize(), hb_PathRelativize(), hb_PCodeVer()

Home

Index

Harbour exclusive functions Clipper compatible functions
hb_A A
hb_B B
hb_C C
hb_D D
hb_E E
hb_F F
hb_G G
hb_H H
hb_I I
hb_J_K J K
hb_L L
hb_M M
hb_N_O N O
hb_P P
hb_R Q R
hb_S S
hb_T T
hb_U U
hb_V V W
hb_W X Y

  • Contrib. Libraries
HBWIN WinAPI Library Compress Libraries
HBHPDF Library (Haru) Multi Threading
Harbour Socket API hbCT (Cl*pper tools)
Serial API hbNF (NanForum library)
HBCURL cURL API Library Mini-XML docs

Clone this wiki locally