Provides information about the Bindery database such as an object’s name, ID, and network address.
Contains the network address if the Bindery object is of the server type.
object.Address
NetAddress.
Read-only.
This example contains the network address if the Bindery object is of the server type.
’Display information about all the objects in Bindery
set bindery = CreateObject ("ucx:Bindery")
set entries=bindery.Search ("*.*")
entries.Reset()
while (entries.HasMoreElements())
entry=entries.Next()
Print (entry.Address.node)
wend
Returns the Bindery object properties collection.
object.Fields
Fields.
Read-only.
This example returns the Bindery object properties collection.
’Display any one property name of the object Testuser
set bindery = CreateObject ("ucx:Bindery")
set entry=bindery.Element ("Testuser")
Fields =entry.Fields
Fields.Reset
property=Fields.Next()
Print (property.Name)
Indicates the state of the Bindery record. The state can be either static or dynamic.
object.Flag
Integer.
Read-only.
This example indicates the state of the Bindery record. This state can be either static or dynamic.
’Display information about all the objects in Bindery
set bindery = CreateObject ("ucx:Bindery")
set entries=bindery.Search ("*.*")
entries.Reset()
while (entries.HasMoreElements())
entry=entries.Next()
Print (entry.Flag)
wend
Returns the ID of the Bindery record.
object.ID
Long.
Read-only.
This example returns the ID of the Bindery record.
’Display information about all the objects in Bindery
set bindery = CreateObject ("ucx:Bindery")
set entries=bindery.Search ("*.*")
entries.Reset()
while (entries.HasMoreElements())
entry=entries.Next()
Print (entry.ID)
wend
Sets the name of the Bindery object.
object.Name=[Value As String]
String.
Read/write.
Value is an optional parameter that sets the new name of the Bindery object.
This example sets the name of the Bindery record.
’Display information about all the objects in Bindery
set bindery = CreateObject ("ucx:Bindery")
set entries=bindery.Search ("*.*")
entries.Reset()
while (entries.HasMoreElements())
entry=entries.Next()
Print (entry.Name)
wend
Sets or returns the security level required to read the Bindery object information.
object.SecurityRead
Integer.
Read/write.
See Security
Constants
.
This example returns the security level required to read the object information.
’Display information about all the objects in Bindery
set bindery = CreateObject ("ucx:Bindery")
set entries=bindery.Search ("*.*")
entries.Reset()
while (entries.HasMoreElements())
entry=entries.Next()
Print (entry.SecurityRead)
wend
Sets or returns the security level required to change the Bindery object information.
object.SecurityWrite
Integer.
Read/write.
See Security
Constants
.
This example returns the security level required to change the object information.
’Display information about all the objects in Bindery
set bindery = CreateObject ("ucx:Bindery")
set entries=bindery.Search ("*.*")
entries.Reset()
while (entries.HasMoreElements())
entry=entries.Next()
Print (entry.SecurityWrite)
wend
Returns and sets the type of the Bindery object.
object.Type
Integer.
Read/write.
This example returns the type of the Bindery object.
’Display information about all the objects in Bindery
set bindery = CreateObject ("ucx:Bindery")
set entries=bindery.Search ("*.*")
entries.Reset()
while (entries.HasMoreElements())
entry=entries.Next()
Print (entry.Type)
wend
Adds the object information to the Bindery object field.
object.AddFieldMember( FieldName As String, ObjName As String, ObjType As Integer)
FieldName Types.
Object Type Constants.
Boolean. Returns TRUE if successful, else returns FALSE.
This example sets the security rights of the user TestUser equal to the security rights of the Admin.
’Make the security of TestUser equal to that of Admin
Set bindery = CreateObject ("ucx:Bindery")
Set Entry=bindery.Element ("TestUser")
entry.AddFieldMember ("SECURITY EQUALS" , "Admin", NET_USER)
Deletes the object information from the Bindery object field.
object.DeleteFieldMember( FieldName As String, ObjName As String, ObjType As Integer)
FieldName Types.
Object Type Constants.
Boolean. Returns TRUE if successful, else returns FALSE.
This example deletes the specified object information from Admin.
’Make the security of TestUser equal to Admin by removing Admin from this property set
Set bindery = CreateObject ("ucx:Bindery")
Set Entry=bindery.Element ("TestUser")
entry.DeleteFieldMember ("SECURITY EQUALS" , "Admin", NET_USER)
Print "The specified fields have been removed."
Determines whether the object exists as a Bindery object property.
object.FieldMemberExist( FieldName As String, ObjName As String, ObjType As Integer)
FieldName Types.
Object Type Constants.
Boolean. Returns TRUE if the object exists as a Bindery object property, else returns FALSE.
This example determines whether TestUser has security rights equivalent to Admin.
’Check whether the TestUser has security rights equivalent to Admin
Set bindery = CreateObject ("ucx:Bindery")
Set Entry=bindery.Element ("TestUser")
If ( entry.FieldMemberExist ("SECURITY EQUALS" , "Admin", NET_USER)) Then
Print "TestUser has security rights equivalent to Admin
Else
Print "TestUser does not have security rights equivalent to Admin."
End If
Completes the changes made to the read/write fields.
object.Update()
None.
Boolean. Returns TRUE if successful, else returns FALSE.
This example completes the changes made to the read/write fields.
’Change the name of the object: TestUser Set bindery = CreateObject ("ucx:Bindery") Set Entry=bindery.Element ("TestUser") ’Change the object name Entry.name = "newTestUser" Entry.Update() Print Entry.Name ’Reset the name Entry.name = "TestUser" Entry.Update() Print Entry.Name