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