AnalyticaLicenseInfo

What's new in Analytica 4.0? >

Returns information about the current Analyica user license.

AnalyticaLicenseInfo(item: text)

Returns information about the license code that Analytica is using, according to the value of item:

  • "Expiration": If the license has no expiration date, it returns 0. Otherwise, it returns the date. The date is an integer, which you can format to display as a date using the Number format dialog.
  • "PurchaserID": A number identifying the organization that the license was issued to.
  • "UserID": A number indicating the user ID; usually, the sequence order in which licenses were issued to the organization.
  • "Optimizer": True (1) or false(0), indicating whether the license includes the Analytica Optimizer.
  • "Beta": True or false, indicating whether the license is for a beta-test release.
  • "Educational": True or false, indicating whether the license is for educational use only.

See also

  • AnalyticaVersion
  • AnalyticaPlatform
  • AnalyticaEdition

Uses:

Anti-piracy of Models

You can use this function to ensure that selected user-defined functions run only with Analytica licenses issued to your organization, or for a selected client company. Embed this line in the function:

 IF AnalyticaLicenseInfo("PurchaserID")<>3197 
 then Error("This model is only licensed to run at Acme Inc.");
 { function body follows }

Where 3197 is the purchaser ID for your or your client's organization. Use "Hide Definition" (from the enterprise edition) and distribute a locked copy of the model, so other users cannot view or modify this code.

Suggestions

Suggest that options "Release", "Platform", and "Edition" be added as possible parameter values for AnalyticaLicenseInfo, replacing need for the system variables AnalyticaVersion, AnalyticaPlatform, and AnalyticaEdition. Also, if given no parameter AnalyticaLicenseInfo() will return a table containing all license info, indexed by names of info types listed above.

Comments


You are not allowed to post comments.