Xojo Conferences
XDCMay2019MiamiUSA

Platforms to show: All Mac Windows Linux Cross-Platform

MBSPluginCompileDate as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
global method Registration MBS Main Plugin 6.3 Yes Yes Yes Yes No
Function: Compilation date of the plugins.
Example:
MsgBox MBSPluginCompileDate
Notes:
e.g. "Aug 27 2006"
Actually the compilation date of the Version Plugin part which defines this function.

Feedback, Comments & Corrections

MBSPluginCompileTime as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
global method Registration MBS Main Plugin 6.3 Yes Yes Yes Yes No
Function: Compilation Time of the plugins.
Example:
MsgBox MBSPluginCompileTime
Notes:
e.g. "19:40:16"
Actually the compilation date of the Version Plugin part which defines this function.

Feedback, Comments & Corrections

MBSPluginVersion as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
global method Registration MBS Main Plugin 3.1 Yes Yes Yes Yes No
Function: Returns a version string from the plugin.
Example:
MsgBox "Build with Real Studio "+RBVersionString+" and "+MBSPluginVersion
Notes: You can show that in your about box so your users can tell you which plugin they use.

Feedback, Comments & Corrections

RegisterMBSPlugin(name as string, product as string, enddate as Integer, serial as Integer) as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
global method Registration MBS Main Plugin 6.5 Yes Yes Yes Yes No
Function: The function to register the plugins.
Example:
const name = "Joe Smith"
const serialnumber = 123456789
const enddate = 200710

if not RegisterMBSPlugin(name,"MBS2007", enddate, serialnumber) then
msgBox "something wrong with the serial number of the plugins!"
end if
Notes:
Returns true if name and serial number is accepted.

While you are running your project in Xojo (or Real Studio) you don't need to register, but if you compile for any target, you should or nice popup windows will show that the app is not registered.

Register in an application subclass to make registering as early as possible.

In case you get this message: "RegisterMBSPlugin()', giving the message "This
item conflicts with another item of the same name" you have something else in your plugins folder, e.g. a html file.

Possible reasons for this failing:
- The calculations you make on the strings or serial number do not create the same value on every machine (Intel vs. PPC, e.g. endian problems)
- You use MBS functions before calling registration function (e.g. you register in window.open event and use the plugin for a control.)
- You mix different plugin versions in your Realbasic folder.

This function works only for 2007 and newer serial numbers.

See also:

Feedback, Comments & Corrections

RegisterMBSPlugin(name as string, product as string, enddate as Integer, serial as string) as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
global method Registration MBS Main Plugin 15.4 Yes Yes Yes Yes No
Function: The function to register the plugins.
Example:
const name = "Joe Smith"
const serialnumber = "123456"
const enddate = 200710

if not RegisterMBSPlugin(name, "MBS Complete", enddate, serialnumber) then
msgBox "something wrong with the serial number of the plugins!"
end if
Notes:
Returns true if name and serial number is accepted.

While you are running your project in Xojo (or Real Studio) you don't need to register, but if you compile for any target, you should or nice popup windows will show that the app is not registered.

Register in an application subclass to make registering as early as possible.

In case you get this message: "RegisterMBSPlugin()', giving the message "This
item conflicts with another item of the same name" you have something else in your plugins folder, e.g. a html file.

Possible reasons for this failing:
- The calculations you make on the strings or serial number do not create the same value on every machine (Intel vs. PPC, e.g. endian problems)
- You use MBS functions before calling registration function (e.g. you register in window.open event and use the plugin for a control.)
- You mix different plugin versions in your Realbasic folder.

This function works only for 2015 and newer serial numbers.

See also:

Feedback, Comments & Corrections

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




Links
MBS Xojo Plugins