checkForLicense
Syntax
checkForLicense(Feature:string, Version:string, PasswordHash:string) → integer |
The function checkForLicense checks if a user-defined license is available or not.
Parameters
The parameter Feature of data type string designates the name of the license feature.
The parameter Version of data type string designates the requested version number of the license.
The parameter PasswordHash of data type string designates the SHA-1-Hash of the password of the license.
Return Value
The return value has the data type integer.
The individual values have this meaning:
0: The license feature is registered and valid.
1: The license feature is not registered.
2: The file has an invalid registry data format.
3: The SHA-1-Hash is wrong.
4: The Host-ID is wrong.
5: The registered version of the feature is too old.
6: The license has expired.
7: The feature does not permit the use with the license type of Plant Simulation (Professional / Standard / Runtime /...).
Example
if checkForLicense("MyFeature", "1", "686483805ac47ca14e03514f7481a7973b401762") = 0 |
Related Topics
Related Topics
Miscellaneous Global Functionsanimation
applicationHome
applicationVersion
callEvery
checkID
clearConsole
clearLogFile
closeAllWindows
closeConsole
closeHTMLWindow
closeModel (open model)
computeSHA1Hash
computeSHA3Hash
connectAutomatically
createLicenseFile
currentEventCtl
deleteAllDebugExpressions
enableFullScreenMode
execute (function)
executeSilent
existsFile
existsMethod
existsObject (2D)
exitApplication
getCallStack
getCommandLineArg
getFileModificationDateTime
getLibraryFiles
getLibraryVersionFromFile
getLogFile
getSeedTable
hideBBL
HTMLHelp
isComputerAccessPermitted
isArray
isSet
keepWindowsAlwaysOnTop
language
licenseName
loadModel (function)
makePathRelative
makeRGBValue
messageBox
modelFile
numOfLimitedObjects
openColorSelectBox
openConsole
openHTMLBrowser
openHTMLWindow
openObjectSelectBox
portNumber
processTime
profiler
putValuesIntoTable (attribute of data type string)
resetInitBox
resetProfile
resetRandomNumberStream
saveModel
saveProfile
sendSMTPMail
setAnimationRefreshRate
setAntitheticRandomNumbers
setConsoleFilter
setInfiniteLoopDetectionTimeout
setMUTraceRouteMethod
setRandomSeedCounter
setSeedTable
showStatisticsReport
strHash
throwRuntimeError
updateGUI
userInterfaceLanguage
How do I
getEpsilonsetEpsilon