RedRegistration Method - CreateRegistration

See Also        Examples

Creates a registration code using the current RedRegistration developer key

Syntax:
object.CreateRegistration( UserName, CompanyName, Rights, RegistrationCode, ExpirationDate, NumberUsers, NumberRunTimes)

Part Description
Object An object expression that evaluates to an RedRegistration object
UserName A STRING expression specifying the name of the registered user's UserName.

Minimum Length = 2
Maximum Length = 254

CompanyName A STRING expression specifying the name of the registered user's CompanyName.

Minimum Length = 0
Maximum Length = 254

Rights A STRING expression specifying the rights property used for validating and creating the registration code.

Minimum Length = 0 
Maximum Length = 254

RegistrationCode  A reference to a STRING expression. Upon success, this variable will hold a valid registration code.

Minimum Length = 5
Maximum Length = 254

ExpirationDate A long expression that evaluates to a Serial date specifying the date that the registration code is to expire. If no expiration date is required, then set to -1.

Default Value = -1

NumberUsers A long expression specifying the number of users that the registration code is to return. If no limitations are required, then set to -1.

Default Value = -1

NumberRunTimes  A long expression specifying the number of program run times that the registration code is to return. If no limitations are required, then set to -1.

Default Value = -1

 








Remarks

If RedRegistration is not registered, then a generic key is used. This key does not offer the anonymity that the private key will offer, since it can be created by anyone with access to the RedRegistration control library.

If a registration code was created successfully, then the return value is TRUE (-1). Otherwise the return value is FALSE (0), and the property LastError is set to the Error Code representing the reason for failure.

Return Type

LONG