Home > Language Reference > Classes > VFSVolume

DefaultDirectory Property

Determine the default directory associated with a particular file extension.

Syntax

Public Property Get DefaultDirectory(ByRef sFileType As String) As String

ParameterDescription
sFileTypeFile extension.

Remarks

The DefaultDirectory property gives the default directory associated with a particular file extension on a volume, these directories depend on the type of card and its associated driver. Like most functionality of this object, calling this property without having previously initialized a valid volume reference in the Reference property will cause a runtime error.

The following example shows how to determine the directory associated with 'jpeg' files on the first volume found :

Private Sub Button1_Click()
  Dim vol as new VFSVolume
  If vol.FindFirstVolume then
    Msgbox "Jpeg folder:\n" & vol.DefaultDirectory(".jpeg")
  End if
End Sub

See also Expansion cards and the VFSDemo sample.

System requirements

SystemMinimal versionRemarks
Palm OSPalm OS 3.0Requires an expansion slot.