Home > Language Reference > Classes > VFSVolume

TotalBytes Property

Volume capacity.

Syntax

Public Property Get TotalBytes() As Long

Remarks

The TotalBytes property returns the volume capacity exprimed in bytes. 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 capacity of the first volume found:

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

See also Expansion cards and the VFSDemo sample.

System requirements

SystemMinimal versionRemarks
Palm OSPalm OS 3.0Requires an expansion slot.