Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

VersionAutoUpdate

Returns the version in the auto update format. e.g. 02040028

Component Version macOS Windows Linux Server iOS SDK
Plugin 2.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "VersionAutoUpdate" )

Parameters

none

Result

the version as an 8 digit number as text.

Description

Returns the version in the auto update format. e.g. 02040028

Examples

Queries version for auto update:

MBS("VersionAutoUpdate")

Convert from display format to auto update format:

Let ( [
v = Substitute ( MBS Update::VersionDisplayText ; "." ; ¶ );
v1 = GetAsNumber ( GetValue ( v ; 1 ) );
v2 = GetAsNumber ( GetValue ( v ; 2 ) );
v3 = GetAsNumber ( GetValue ( v ; 3 ) );
v4 = GetAsNumber ( GetValue ( v ; 4 ) )
  ]; v4+v3*100+v2*10000+v1*1000000)

Check if plugin is okay to use for a script:

If [ MBS( "VersionAutoUpdate" ) < 11000000 ]
    Show Custom Dialog [ "MBS Plugin version too old" ; "This script needs MBS Plugin in version 11.0 or higher." ]
    If [ Get(LastMessageChoice) = 2 // picked Update button ]
        Perform Script [ Specified: From list ; “Install MBS Plugin” ; Parameter: ]
    End If
    Exit Script [ Text Result: "MBS Plugin too old" ]
End If
#
# use a function from version 11.0
Set Variable [ $dropview ; Value: MBS("DragDrop.AttachToWindow"; Get(WindowName) ) ]
# ...

See also

Blog Entries

This function is free to use.

Created 18th August 2014, last changed 27th January 2024


Version - Vision.ClassifyImage