Home > Language Reference > Classes > VFSVolume

FreeBytes Property

Available storage space on the volume.

Syntax

Public Property Get FreeBytes() As Long

Remarks

The FreeBytes property returns the available storage space exprimed in bytes on the volume. 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 available storage space on the first volume found:

Private Sub Button1_Click()
  Dim vol as new VFSVolume
  If vol.FindFirstVolume then
    Msgbox "FreeBytes : " & vol.FreeBytes & "\nTotalBytes : " & vol.TotalBytes
  End if
End Sub

See also Expansion cards and the VFSDemo sample.

System requirements

SystemMinimal versionRemarks
Palm OSPalm OS 3.0Requires an expansion slot.