contents.gifprev1.gifnext1.gif

CDRIVE() - Change drive

Set the current drive to the drive passed in the parameter.

Returns

Integer value if successful. If an error occurs, this function returns a zero.

Arguments

Type
Field
Description
string
dDrive
Set system pointer to drive
integer
iBasis
Valid:
0 = don't display messagebox
1 = display messagebox
16 bit DLL declarations

PowerBuilder Function declaration

function int CDRIVE(string dDrive, int iBasis) library "IFL16.DLL"

Visual Basic Function declaration

Declare Function CDRIVE lib "IFL16" (ByVal dDrive As String, ByVal iBasis As Integer) As Integer

32 bit DLL declarations

PowerBuilder Function declaration

function int CDRIVE(string dDrive, int iBasis) library "IFL32.DLL"

Visual Basic Function declaration

Declare Function CDRIVE lib "IFL32" (ByVal dDrive As String, ByVal iBasis As Integer) As Integer

Example:

dDrive
=
C

iBasis
=
0

Result: n/a