of_changedirectory


pfcapsrv.pbl   >   pfc_n_cst_filesrvsol2   >   of_changedirectory   

Full name pfc_n_cst_filesrvsol2.of_changedirectory
Access public
Extend of integer
Return value integer
Prototype public function integer of_changedirectory(string)

Name Datatype
No Data

Name Datatype
No Data

public function integer of_changedirectory (string as_newdirectory);//////////////////////////////////////////////////////////////////////////////
//	Public Function:  of_ChangeDirectory
//	Arguments:		as_NewDirectory			The name of the new working directory; an
//														absolute path may be specified or it will
//														be relative to the current working directory
//	Returns:			Integer
//						1 if successful,
//						-1 if an error occurrs.
//	Description:	Change the current working directory.
//////////////////////////////////////////////////////////////////////////////
//	Rev. History:	Version
//						5.0.02   Initial version
//////////////////////////////////////////////////////////////////////////////
//	Copyright © 1996-1999 Sybase, Inc. and its subsidiaries.  All rights reserved.  Any distribution of the 
// PowerBuilder Foundation Classes (PFC) source code by other than Sybase, Inc. and its subsidiaries is prohibited.
//////////////////////////////////////////////////////////////////////////////
If Trim(as_NewDirectory) = "" Then Return -1

If SetCurrentDirectoryA(as_NewDirectory) Then
	Return 1
Else
	Return -1
End If
end function

     
Name Owner
No Data

     
Name Owner
systemfunctions.trim systemfunctions
pfc_n_cst_filesrvsol2.SetCurrentDirectoryA pfc_n_cst_filesrvsol2

     
Full name
No Data

     
Name Scope
No Data