ProductName  

Enables you to unlock the full functionality of ShortName using your Registration Name and your Registration Key.

Syntax

MatrixObject.Register RegistrationName, RegistrationKey

Parameters

RegistrationName
String containing the name that you used when you bought your license of ShortName . Minimum length is 4 characters. Please note that RegistrationName is case sensitive.
RegistrationKey
String containing the registration key that you received when you bought your license of ShortName .

Remarks

Your registration Name and Registration Key will arrive to you via email after purchasing ShortName . To purchase ShortName , visit http://www.bluebit.gr/matrix.

You will need to use Register method just once in your project, each time the application is started, either in the development machine or in any machine that runs your program. You can call Register method preferably in the initializing routines of your project, from within the Main() procedure of your code, or you call it from within Form_Load() event of a form.

No messages or error codes are returned if the combination of Registration Name and Registration Key fails to unlock the component. Version property can be used to check if the registration was successful.

You should use Register method with the first instance of a matrix object that has been initialized in your application and before you initialize any more matrix objects.

Also use Register method with a variable that has been declared at module level, do not use a variable declared at procedure level. Do not set this variable to Nothing until your program ends.

Example

This example demonstrates the use of the Register method.
Dim M as Matrix

Sub Main()
    Set M = New Matrix
    M.Register "Registration Name", "Registration key"
    'check the Version property
    Debug.Print M.Version
    'continue with the rest of your code here
    
 End Sub

See Also

Version Property | Matrix ActiveX Component 3.1 Editions | Properties and methods available with each edition

Applies To: Matrix | CMatrix