FolderItem methods

Online Documentation   -   Statistics   -   FAQ   -   Plugin Parts (All, Dependencies)   -   Class hierarchy

New in Version 22.2 22.3 22.4 22.5 23.0 23.1 23.2 23.3 23.4 23.5 24.0 24.1

The list of the   topics,   classes,   interfaces,   controls,   modules,   global methods by category,   global methods by name,   screenshots,   licenses   and   examples.

Platforms to show: All Mac Windows Linux Cross-Platform

Back to FolderItem class.

FolderItem.CountMBS as Integer   Deprecated

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Files MBS MacClassic Plugin 3.2 ✅ Yes ✅ Yes ❌ No ✅ Yes All
This item is deprecated and should no longer be used. You can use folderitem.Count instead.
Returns the number of items in this folder.
Example
dim f as FolderItem = SpecialFolder.Desktop
MsgBox str(F.Count)+" vs. "+str(F.CountMBS)

The count property of the Xojo folderitem class is cached.
So if you create a file, the count property may not update.

If you need a more up to date value, you can use the CountMBS function to return the value the Mac OS system software returns.
On any error (e.g. invalid folderitem) the function returns 0.

Windows support added in 4.2dr2.

Some examples using this method:

Blog Entries

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


💬 Ask a question or report a problem