of_getcurrentdirectory


pfcapsrv.pbl   >   pfc_n_cst_filesrvunicode   >   of_getcurrentdirectory   

Full name pfc_n_cst_filesrvunicode.of_getcurrentdirectory
Access public
Extend of string
Return value string
Prototype public function string of_getcurrentdirectory()

Name Datatype
No Data

Name Datatype
ls_CurrentDir String
lul_Rc Ulong
lul_size Ulong

public function string of_getcurrentdirectory ();//////////////////////////////////////////////////////////////////////////////
//	Public Function:  of_GetCurrentDirectory
//	Arguments: 		None
//	Returns:  		string 		The current working directory, "" if error			
//	Description:  	Return the current working directory
//////////////////////////////////////////////////////////////////////////////
//	Rev. History:	Version
//						5.0   Initial version
//						5.0.03	Changed Uint variables to Ulong for NT4.0 compatibility
//////////////////////////////////////////////////////////////////////////////
//	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.
//////////////////////////////////////////////////////////////////////////////
Ulong		lul_size = 260 	// MAX_PATH
Ulong		lul_Rc
String	ls_CurrentDir

ls_CurrentDir = Space (lul_size)

lul_rc = GetCurrentDirectoryW(lul_size, ls_CurrentDir)

if lul_rc > 0 THEN
	return ls_CurrentDir
else
	return ""
end if
end function

     
Name Owner
No Data

     
Name Owner
systemfunctions.space systemfunctions
pfc_n_cst_filesrvunicode.GetCurrentDirectoryW pfc_n_cst_filesrvunicode

     
Full name
No Data

     
Name Scope
No Data