of_getdrivetype


pfcapsrv.pbl   >   pfc_n_cst_filesrvhpux   >   of_getdrivetype   

Full name pfc_n_cst_filesrvhpux.of_getdrivetype
Access public
Extend of integer
Return value integer
Prototype public function integer of_getdrivetype(string)

Name Datatype
No Data

Name Datatype
ls_drive string

public function integer of_getdrivetype (string as_drive);//////////////////////////////////////////////////////////////////////////////
//	Public Function:  of_GetDriveType
//	Arguments:		as_Drive				The letter of the drive to be checked.
//	Returns:			Integer
//						The type of the drive:
//						2 - floppy drive,
//						3 - hard drive,
//						4 - network drive,
//						5 - cdrom drive,
//						6 - ramdisk,
//						any other value is the result of an error.
//	Description:	Determine the type of a drive.
//////////////////////////////////////////////////////////////////////////////
//	Rev. History:	Version
//						6.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.
//////////////////////////////////////////////////////////////////////////////
string ls_drive

ls_drive = Upper(left(as_drive,1)) + ":\"

Return GetDriveTypeA(ls_drive)
end function

     
Name Owner
pfc_n_cst_filesrvhpux.of_dirlist pfc_n_cst_filesrvhpux

     
Name Owner
systemfunctions.left systemfunctions
systemfunctions.upper systemfunctions
pfc_n_cst_filesrvhpux.GetDriveTypeA pfc_n_cst_filesrvhpux

     
Full name
No Data

     
Name Scope
No Data