The IsLicensed method when called, checks the values set for Company, Key and LicenseType properties and returns a Boolean result whether the license information is valid or not.
| Usage | blnResult = ObjectName.License.IsLicensed |
| Parameters | None |
| Returns |
Boolean value
|
| Remarks |
|
| Visual Basic / ASP (VBScript) |
| Dim objSMS As mCore.SMS Set objSMS = New mCore.SMS objSMS.License.Company = "My Company Name" objSMS.License.Key = "My-License-Key" objSMS.License.LicenseType = "PRO-DISTRIBUTION" If objSMS.IsLicensed Then MsgBox objSMS.About Else MsgBox "Invalid License Information!" End If Set objSMS = Nothing |