If you feel some confusion about any thing or if you do not find what you are looking for, please inform us so that we can improve our documentation accordingly. docs@aspfusion.net

AdvRegistry

The component provides you complete registry management on server. No need any more to use Win32 API extended Registry access functions. While turning on the component for a new website, the system takes registry path. All registry management operations are restricted to the registry path mentioned in ASPFusion administration. It provides following operations for server side registry management.

  1. Complete basic registry management operations, such as Get, Set and Delete a registry value or key.

  2. Along with these basic operations, it provides GetAll for getting listing of all keys and values under the given registry branch, and returns their Entry, Type and Value, and also can sort the listing in ascending and descending given sorting criteria.

<%set Obj = Server.CreateObject("AdvRegistry.Registry")%>

AdvRegistry Properties 

Property

Description

Entry

The registry value to be processed
Example:
<%Obj.Entry = “Test1”%>

ErrorReason

Reports any errors that occur during the request
Example:
<%if Obj.IsError = 1 then
        Response.Write Obj.ErrorReason
else
        No Error
end if %>

IsError

Returns 1 if any error occur during the request otherwise 0
Example:
<%if Obj.IsError = 1 then
        Error
else
        No Error
end if %>

Sort

Sorts query column data (case-insensitive). Sorts on Entry, Type, and Value columns as text. Valid values are

Entry_ASC (default)

Entry_DESC

Type_ASC

Type_DESC

Value_ASC

Value_DESC
Example: 

<%Obj.Sort = “Value_ASC”%>

Type

The type of data you want to process. Valid values are

Any

String

DWORD

Key
Example:
<%Obj.Type = “Any”%>

Value

The data value to be set
Example:
<%Obj.Value = “Test”%>

AdvRegistry Methods 

Method

Parameter

Return Value

Description

Delete

Branch

None

Delete the specified branch from registry
Example:
<%Obj.Delete(Branch)%>

Get

Branch

Object

Get the specified value from specified branch
Example:
<%set Result = Obj.Get(Branch)

Response.Write Result.Value
set Result = nothing%>

GetAll

Branch

Array of objects

Get list of specified branch 
Example:
<%set Rest = Obj.GetAll(Branch)
for each Member in Rest
      =Member.Entry
      =Member.Type
      =Member.Value
next
set Rest = nothing%>

Set

Branch

None

Set the value to specified branch
Example:
<%Obj.Set(Branch)%>

Back

Copyright © 2000, Advanced Communications