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