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
I am a consulting company, and want to ensure that certain user-defined functions only run on Analytica copies owned by my client. Thus, I 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 my clients' purchaser ID. I then use "Hide Definition" (from the enterprise edition) and distribute a locked copy of the model.
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.
Enable comment auto-refresher