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
| Parameter | Description |
| sFileType | File 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 SubSee also Expansion cards and the VFSDemo sample.
System requirements
| System | Minimal version | Remarks |
| Palm OS | Palm OS 3.0 | Requires an expansion slot. |