Application.Trial.evaluate() This page was last modified over 30 day(s) ago and has 0 comment(s)


Back to Application.Trial Class Summary

Availability
Windows, Mac OSX, Linux

Usage
mdm.Application.Trial.evaluate(serial:String):Boolean

Parameters
serial:String - Serial

Returns
A Boolean

Description
Returns a boolean indicating whether or not the specified serial is valid.

Notes
A .txt file including valid Serials shouldbe provided in the Zinc IDE. The correct format for the .txt file should be alphanumerical [a-zA-Z0-9] separated by CRLF characters (new lines).

For example:

SERIAL1ABCD
SERIAL2EFGH
SERIAL3IJKL

Example Code
if (mdm.Application.Trial.activate("ABC1234HB67N") == true){
    mdm.Dialogs.prompt("Your serial is valid");
} else {
    mdm.Dialogs.prompt("Your serial is invalid");
}

mdm.Application.Trial Class Example Downloads
No Example Downloads Available


Registered Users must be logged in to 'MyAccount' to add a Comment - Log In Here
  After Logging In, Click Here to Refresh This Page