|
of_changedirectory
|
|
Full name
|
pfc_n_cst_filesrvwin32.of_changedirectory
|
Access
|
public
|
Extend of
|
integer
|
Return value
|
integer
|
Prototype
|
public function integer of_changedirectory(string)
|
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 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