of_getdrivetype


pfcapsrv.pbl   >   pfc_n_cst_filesrvunicode   >   of_getdrivetype   

Full name pfc_n_cst_filesrvunicode.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
lul_drivetype Ulong

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
//						5.0   Initial version
//						5.0.03	Changed Uint variables to Ulong for NT4.0 compatibility
// 					5.0.03	Changed argument datatype to string from char to fix polymorphism problem
//									with literals passed in.
//////////////////////////////////////////////////////////////////////////////
//	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_drivetype
String	ls_drive

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

lul_drivetype = GetDriveTypeW(ls_drive)

return lul_drivetype
end function

     
Name Owner
pfc_n_cst_filesrvunicode.of_dirlist pfc_n_cst_filesrvunicode

     
Name Owner
systemfunctions.left systemfunctions
systemfunctions.upper systemfunctions
pfc_n_cst_filesrvunicode.GetDriveTypeW pfc_n_cst_filesrvunicode

     
Full name
No Data

     
Name Scope
No Data