Platforms to show: All Mac Windows Linux Cross-Platform

/MacClassic/Folderitem.Count test


Required plugins for this example: MBS MacClassic Plugin

You find this example project in your Plugins Download as a Xojo project file within the examples folder: /MacClassic/Folderitem.Count test

This example is the version from Sun, 17th Mar 2012.

Project "Folderitem.Count test.xojo_binary_project"
Class Window1 Inherits Window
Control StaticText1 Inherits Label
ControlInstance StaticText1 Inherits Label
End Control
Control StaticText2 Inherits Label
ControlInstance StaticText2 Inherits Label
End Control
Control StaticText3 Inherits Label
ControlInstance StaticText3 Inherits Label
End Control
Control StaticText4 Inherits Label
ControlInstance StaticText4 Inherits Label
End Control
Control StaticText5 Inherits Label
ControlInstance StaticText5 Inherits Label
End Control
Control StaticText6 Inherits Label
ControlInstance StaticText6 Inherits Label
End Control
Control StaticText7 Inherits Label
ControlInstance StaticText7 Inherits Label
End Control
Control StaticText8 Inherits Label
ControlInstance StaticText8 Inherits Label
End Control
Control count Inherits Label
ControlInstance count(0) Inherits Label
ControlInstance count(1) Inherits Label
ControlInstance count(2) Inherits Label
ControlInstance count(3) Inherits Label
ControlInstance count(4) Inherits Label
ControlInstance count(5) Inherits Label
End Control
Control create Inherits Label
ControlInstance create Inherits Label
End Control
Control delete Inherits Label
ControlInstance delete Inherits Label
End Control
Control PushButton1 Inherits PushButton
ControlInstance PushButton1 Inherits PushButton
EventHandler Sub Action() test End EventHandler
End Control
Control StaticText9 Inherits Label
ControlInstance StaticText9 Inherits Label
End Control
Sub test() dim f as FolderItem dim d as FolderItem dim t as TextOutputStream f=SpecialFolder.Desktop d=f.Child("folderitem.count test file") count(0).text=str(f.Count) count(1).text=str(f.CountMBS) t=d.CreateTextFile if t<>nil then t.Close t=nil create.text="ok." else create.text="failed." end if count(2).text=str(f.Count) count(3).text=str(f.CountMBS) d.Delete if d.Exists then delete.text="failed." else delete.text="ok." end if count(4).text=str(f.Count) count(5).text=str(f.CountMBS) End Sub
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
End Class
End Project

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


The biggest plugin in space...