PBORCA_SccGetLatestVersion

Description

Retrieves the latest version of files from the SCC provider.

Syntax

INT PBORCA_SccGetLatestVer ( HPBORCA hORCASession, 
   Long nFiles, 
   LPTSTR *ppFileNames );

Argument

Description

hORCASession

Handle to previously established ORCA session

nFiles

Number of files to be retrieved

*ppFileNames

Names of files to be retrieved


Return value

INT. Typical return codes are:

Return code

Description

0       PBORCA_OK

Operation successful

-22      PBORCA_SCCFAILURE

Operation failure


Usage

Call this method to retrieve files from source control. Typically, these are objects that exist outside of a PowerBuilder library but nevertheless belong to an application. Examples include BMP, JPG, ICO, DOC, HLP, HTM, JSP, and PBR files.

Examples

The following example:

LPTSTR   pOtherFiles[3];
pOtherFiles[0] = _TEXT("c:\\qadb\\qadbtest\\qadbtest.hlp");
pOtherFiles[1] = _TEXT("c:\\qadb\\datatypes\\datatypes.pbr");
pOtherFiles[2] = _TEXT("c:\\qadb\\qadbtest.bmp");
 
lpORCA_Info->lReturnCode = PBORCA_SccGetLatestVer
    (lpORCA_Info->hORCASession, 3, pOtherFiles);

See also

PBORCA_SccConnect

PBORCA_SccSetTarget