Xojo Conferences

Platforms to show: All Mac Windows Linux Cross-Platform

/Util/VolumeSize Example
Required plugins for this example: MBS Util Plugin
You find this example project in your Plugins Download as a Xojo project file within the examples folder: /Util/VolumeSize Example
This example is the version from Sun, 17th Mar 2012.
Project "VolumeSize Example.rbp"
Class Window1 Inherits Window
Control list Inherits ListBox
ControlInstance list Inherits ListBox
EventHandler Sub Open() me.columnalignment(2)=3 me.columnalignment(3)=3 me.columnalignment(4)=3 me.columnalignment(5)=3 End EventHandler
End Control
EventHandler Sub Open() dim i,c,l as integer dim v as folderItem c=volumecount-1 for i=0 to c v=volume(i) list.addrow v.name l=list.lastIndex list.cell(l,1)=v.absolutePath list.cell(l,2)=format(v.VolumeSizeMBS,"-0") list.cell(l,3)=format(v.VolumeSizeKBMBS,"-0") list.cell(l,4)=format(v.VolumeFreeSizeMBS,"-0") list.cell(l,5)=format(v.VolumeFreeSizeKBMBS,"-0") next End EventHandler
End Class
MenuBar Menu
MenuItem UntitledMenu3 = ""
MenuItem UntitledMenu2 = "File"
MenuItem FileQuit = "Quit"
MenuItem UntitledMenu0 = "Edit"
MenuItem EditUndo = "Undo"
MenuItem UntitledMenu1 = "-"
MenuItem EditCut = "Cut"
MenuItem EditCopy = "Copy"
MenuItem EditPaste = "Paste"
MenuItem EditClear = "Clear"
End MenuBar
Class App Inherits Application
EventHandler Sub Open() if TargetWin32 then // Disable error dialog from Windows with missing disc in drive soft Declare Function SetErrorMode Lib "kernel32" (wMode As integer) As integer call SetErrorMode 3 end if End EventHandler
End Class
End Project

Feedback, Comments & Corrections

The items on this page are in the following plugins: MBS Util Plugin.

MBS FileMaker tutorial videos