Xojo Conferences
MBSSep2018MunichDE
XDCMay2019MiamiUSA

Platforms to show: All Mac Windows Linux Cross-Platform

Next items

SystemInformationMBS.AvailableRAM as Double
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method System MBS Util Plugin 8.0 Yes Yes Yes Yes No
Function: Returns the size of the available memory.
Example:
msgBox format(SystemInformationMBS.AvailableRAM/1024/1024,"0")+" MB of RAM free."
Notes:
This function is useful if you want to know how much memory you can allocate without the system swapping.

On Windows, Mac OS X and Linux you can normally allocate up to 2 or 3 GB of memory in your addressroom. A swap file on disc is used to cache memory which does not fit into physical memory.

So if you need to allocate a buffer to store temporary data, you can use this function to calculate a good size.
For example a file copy function could use something like this:

// a quarter of free memory is good to leave room for some OS buffers:
buffersize=SystemInformationMBS.AvailableRAM/4

// minimum 4 MB
if buffersize<1024*1024*4 then
buffersize<1024*1024*4
end if

// maximum 128 MB to make chunks not too big and application too unresponsible
if buffersize<1024*1024*128 then
buffersize<1024*1024*128
end if

In older plugins this function was named AvailableRAMMBS.

Feedback, Comments & Corrections

SystemInformationMBS.BusSpeed as Double
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method System MBS Util Plugin 11.1 Yes No No Yes, macOS only No
Function: Returns the speed of the System bus in Hz.
Example:
msgbox "Your main CPU has "+format(SystemInformationMBS.BusSpeed/1000000.0,"0")+" MHz"

Feedback, Comments & Corrections

SystemInformationMBS.Computername as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method System MBS Util Plugin 8.0 Yes Yes Yes Yes No
Function: Returns the name of the computer.
Example:
msgbox "Hi, I'm "+SystemInformationMBS.Computername+"."
Notes:
On Mac OS, the name is queried in this order:
1. Try to ask the Mac OS X Corefoundation for the name.
2. Try to ask via AppleEvents the Finder or FileSharing.
3. Read it from the system resources.

On Linux or Windows the system name.

In older plugins this function was named ComputerNameMBS.

Feedback, Comments & Corrections

SystemInformationMBS.CPUBrandString as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method System MBS Util Plugin 10.3 Yes Yes Yes Yes No
Function: Returns the CPU brand string.
Example:
MsgBox SystemInformationMBS.CPUBrandString
Notes:
If it is an Intel x86 Chip or something compatible, you get strings like this: "Intel(R) Core(TM) i7 CPU M 620 @ 2.67GHz" (Same as CPUIDMBS.BrandString). But on PowerPC chips we return strings like "PowerPC G5 (970MP)" (same as CPUInfoMBS.CPUName).

May return "" if the processor is unknown.

Feedback, Comments & Corrections

SystemInformationMBS.CPUSpeed as Double
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method System MBS Util Plugin 11.1 Yes No No Yes, macOS only No
Function: Returns the Speed of the main CPU in Hz.
Example:
msgbox "Your main CPU has "+format(SystemInformationMBS.CPUSpeed/1000000.0,"0")+" MHz"

Feedback, Comments & Corrections

SystemInformationMBS.DomainName as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method System MBS Util Plugin 10.1 No Yes No Yes, Windows only No
Function: Returns the domain name of a Windows PC.
Example:
msgbox SystemInformationMBS.DomainName
Notes: Returns an empty string on any error.

Feedback, Comments & Corrections

SystemInformationMBS.HardDiscSerial as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method System MBS Util Plugin 10.3 Yes Yes No Yes No
Function: Returns the hard disc serial number of the first hard disc which has a serial number.
Example:
MsgBox SystemInformationMBS.HardDiscSerial
Notes:
This function can return "" if nothing is found.
Seems to return always empty string on Mac OS X 10.4 as the system properties dictionary does not contain the serial number there.

On Windows this function sometimes returns empty string, but later works again on the same machine. Reason unknown.

Feedback, Comments & Corrections

SystemInformationMBS.HostName as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method System MBS Util Plugin 10.1 Yes Yes Yes Yes No
Function: Returns the hostname for this computer.
Example:
MsgBox SystemInformationMBS.HostName

Feedback, Comments & Corrections

SystemInformationMBS.Is64bitWindows as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method System MBS Util Plugin 9.3 Yes Yes Yes Yes No
Function: Whether the Windows you are using is a 64bit Windows.
Example:
msgbox str(SystemInformationMBS.Is64bitWindows)
Notes:
Returns true for x64 Windows editions.
This function could also be named isWoW64 for "is Windows on Windows 64 bit."

Returns always true on 64bit target.

Feedback, Comments & Corrections

SystemInformationMBS.isElCapitan(orHigher as boolean = true) as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method System MBS Util Plugin 15.4 Yes Yes Yes Yes No
Function: Whether the operation system is Mac OS X 10.11 El Capitan or newer.
Example:
MsgBox str(SystemInformationMBS.isElCapitan)
Notes:
Returns true on Mac OS X 10.11.
If orHigher is set, it will also return true on 10.12.

Feedback, Comments & Corrections

SystemInformationMBS.isHighSierra(orHigher as boolean = true) as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method System MBS Util Plugin 18.2 Yes Yes Yes Yes No
Function: Whether the operation system is macOS 10.13 High Sierra or newer.
Example:
MsgBox str(SystemInformationMBS.isHighSierra)
Notes:
Returns true on Mac OS X 10.13.
If orHigher is set, it will also return true on 10.14.

Feedback, Comments & Corrections

SystemInformationMBS.isLeopard(orHigher as boolean = true) as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method System MBS Util Plugin 9.6 Yes Yes Yes Yes No
Function: Whether the operation system is Mac OS X 10.5 Leopard or newer.
Example:
MsgBox str(SystemInformationMBS.isLeopard)
Notes: Returns true on Mac OS X 10.5 or newer.

Feedback, Comments & Corrections

SystemInformationMBS.isLion(orHigher as boolean = true) as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method System MBS Util Plugin 11.2 Yes Yes Yes Yes No
Function: Whether the operation system is Mac OS X 10.7 Lion or newer.
Example:
MsgBox str(SystemInformationMBS.isLion)
Notes: Returns true on Mac OS X 10.7 or newer.

Feedback, Comments & Corrections

SystemInformationMBS.isMacOSX as Boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method System MBS Util Plugin 8.4 Yes Yes Yes Yes No
Function: Returns true if being called on Mac OS X.
Example:
msgbox str(SystemInformationMBS.isMacOSX)

Feedback, Comments & Corrections

SystemInformationMBS.isMavericks(orHigher as boolean = true) as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method System MBS Util Plugin 13.2 Yes Yes Yes Yes No
Function: Whether the operation system is Mac OS X 10.9 Mavericks or newer.
Example:
MsgBox str(SystemInformationMBS.isMavericks)
Notes: Returns true on Mac OS X 10.9 or newer.

Feedback, Comments & Corrections

SystemInformationMBS.isMountainLion(orHigher as boolean = true) as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method System MBS Util Plugin 12.3 Yes Yes Yes Yes No
Function: Whether the operation system is Mac OS X 10.8 Mountain Lion or newer.
Example:
MsgBox str(SystemInformationMBS.isMountainLion)
Notes: Returns true on Mac OS X 10.8 or newer.

Feedback, Comments & Corrections

SystemInformationMBS.isSierra(orHigher as boolean = true) as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method System MBS Util Plugin 16.3 Yes Yes Yes Yes No
Function: Whether the operation system is macOS 10.12 Sierra or newer.
Example:
MsgBox str(SystemInformationMBS.isSierra)
Notes:
Returns true on Mac OS X 10.12.
If orHigher is set, it will also return true on 10.13.

Feedback, Comments & Corrections

SystemInformationMBS.isSnowLeopard(orHigher as boolean = true) as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method System MBS Util Plugin 9.6 Yes Yes Yes Yes No
Function: Whether the operation system is Mac OS X 10.6 Snow Leopard or newer.
Example:
MsgBox str(SystemInformationMBS.isSnowLeopard)
Notes: Returns true on Mac OS X 10.6 or newer.

Feedback, Comments & Corrections

SystemInformationMBS.isWindows10(orHigher as boolean = false) as Boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method System MBS Util Plugin 15.1 Yes Yes Yes Yes No
Function: Returns true if called on Windows 10.
Example:
msgbox str(SystemInformationMBS.isWindows10)
Notes:
And False on Mac OS X, Linux, Windows 7/Vista/XP/2000/ME/98/95/8/8.1.
If orHigher, than it returns true if OS Version is newer.

Feedback, Comments & Corrections

SystemInformationMBS.isWindows2000(orHigher as boolean = false) as Boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method System MBS Util Plugin 8.4 Yes Yes Yes Yes No
Function: Returns true if called on Windows 2000.
Example:
msgbox str(SystemInformationMBS.isWindows2000)
Notes:
And False on Mac OS X, Linux, Windows 7/XP/Vista/ME/98/95.
If orHigher, than it returns true if OS Version is newer.

Feedback, Comments & Corrections

SystemInformationMBS.isWindows7(orHigher as boolean = false) as Boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method System MBS Util Plugin 10.0 Yes Yes Yes Yes No
Function: Returns true if called on Windows 7.
Example:
msgbox str(SystemInformationMBS.isWindows7)
Notes:
And False on Mac OS X, Linux, Windows Vista/XP/2000/ME/98/95.
If orHigher, than it returns true if OS Version is newer.

Feedback, Comments & Corrections

SystemInformationMBS.isWindows8(orHigher as boolean = false) as Boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method System MBS Util Plugin 12.3 Yes Yes Yes Yes No
Function: Returns true if called on Windows 8.
Example:
msgbox str(SystemInformationMBS.isWindows8)
Notes:
And False on Mac OS X, Linux, Windows 7/Vista/XP/2000/ME/98/95.
If orHigher, than it returns true if OS Version is newer.

Feedback, Comments & Corrections

SystemInformationMBS.isWindows81(orHigher as boolean = false) as Boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method System MBS Util Plugin 15.1 Yes Yes Yes Yes No
Function: Returns true if called on Windows 8.1
Example:
msgbox str(SystemInformationMBS.isWindows81)
Notes:
And False on Mac OS X, Linux, Windows 7/Vista/XP/2000/ME/98/95/8/10.
If orHigher, than it returns true if OS Version is newer.

Feedback, Comments & Corrections

SystemInformationMBS.isWindowsVista(orHigher as boolean = false) as Boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method System MBS Util Plugin 8.4 Yes Yes Yes Yes No
Function: Returns true if called on Windows Vista.
Example:
msgbox str(SystemInformationMBS.isWindowsVista)
Notes:
And False on Mac OS X, Linux, Windows 7/XP/2000/ME/98/95.
If orHigher, than it returns true if OS Version is newer.

Feedback, Comments & Corrections

SystemInformationMBS.isWindowsXP(orHigher as boolean = false) as Boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method System MBS Util Plugin 8.4 Yes Yes Yes Yes No
Function: Returns true if called on Windows XP.
Example:
msgbox str(SystemInformationMBS.isWindowsXP)
Notes:
And False on Mac OS X, Linux, Windows 7/Vista/2000/ME/98/95.
If orHigher, than it returns true if OS Version is newer.

Feedback, Comments & Corrections

SystemInformationMBS.isYosemite(orHigher as boolean = true) as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method System MBS Util Plugin 14.3 Yes Yes Yes Yes No
Function: Whether the operation system is Mac OS X 10.10 Yosemite or newer.
Example:
MsgBox str(SystemInformationMBS.isYosemite)
Notes: Returns true on Mac OS X 10.10 or newer.

Feedback, Comments & Corrections

SystemInformationMBS.LogicalRAM as Double
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method System MBS Util Plugin 8.0 Yes Yes Yes Yes No
Function: Returns the size of the logical installed memory.
Example:
msgBox format(SystemInformationMBS.LogicalRAM/1024/1024,"0")+" MB of RAM built in."
This item is deprecated and should no longer be used.
Notes:
On Mac OS Classic the virtual memory used or the physical memory. The virtual memory includes the memory used for filemapping. You'll have some MB more than you might exspect, because the Mac OS ROM needs for example 3 MB and this is added. So 320 MB physical RAM can lead into 330 MB logical RAM. 320 MB physical plus 1 MB minimum for virtual memory plus 3 MB for the Mac ROM and around 6 MB for some application file mapping.

Result changed from integer to double in plugin version 3.4 to return correct results on 2 GB RAM.

On Windows the total virtual memory size.
On Linux always 4 GB.

In older plugins this function was named LogicalRAMMBS.

Feedback, Comments & Corrections

SystemInformationMBS.MACAddress as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method System MBS Util Plugin 8.0 Yes Yes Yes Yes No
Function: Returns the hardware ethernet address of the first ethernet card.
Example:
msgBox SystemInformationMBS.MACAddress
Notes:
It returns a string with 6 bytes.
Works now with MBS Plugin 2.6 for Mac OS Classic, Carbon inside Classic and Mac OS X, but may not work for a Classic application running on Mac OS X. And may fail on some machines if no OpenTransport is running.

On Windows and Mac OS X you can have multiple ethernet cards and you should use a command line tool with the shell class to find what you need.

For example on Windows:

ipconfig /all

or on Mac OS X:

ifconfig -a

You can replace this function with usage of the NetworkInterface class in newer RB versions.

Added Linux support in version 16.4.

Feedback, Comments & Corrections

SystemInformationMBS.MACAddressString as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method System MBS Util Plugin 8.0 Yes Yes Yes Yes No
Function: Returns the hardware ethernet address of the first ethernet card.
Example:
msgBox SystemInformationMBS.MACAddressString
Notes:
Same as MACAddress, but with different format of output.

You can replace this function with usage of the NetworkInterface class in newer RB versions.

The plugin asks on Mac OS X the IOKit framework for the primary ethernet interface. We are not sure what Apple really defines for being the primary one, so let's test it:

  • Ethernet on and Airport off -> Ethernet MAC Address
  • Ethernet off and Airport on -> Ethernet MAC Address

Added Linux support in version 16.4.

Feedback, Comments & Corrections

Next items

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





Links
MBS FileMaker blog