RedRegistration Method - LoadRegistration

See Also        Examples

Loads user registration information saved by the method SaveRegistration. This minimizes the overhead required to implement the registration system.

Syntax:

object.LoadRegistration( KeyName )

Part  Description
Object  An object expression that evaluates to an RedRegistration object
KeyName A STRING expression specifying the name of the Key that the information will be stored in.

Minimum Length = 1
Maximum Length = 254

Remarks
Returns a LONG specifying the success of the operation.

If information was found in the location specified by KeyName then the method returns -1. UserName, CompanyName, and RegCode will contain the values that were stored in the registry. In addition the property Rights will contain the value of KeyName. If this is not desired then you can set the Rights property to the correct value.

If information was not found in the location specified by KeyName then the method returns 0. The properties UserName, CompanyName, Rights, and RegCode will be set to EMPTY strings, and the property LastError is set to the Error Code representing the reason for failure

Return Type
LONG