1.6 Field Object

Returns information about a specific field in the Bindery database.

1.6.1 Flag property

Indicates the nature of the Field object.

Syntax

 object.Flag
 

Type

String.

Attributes

Read-only.

Remarks

See Object State Constants.

Example

This example indicates the nature of the Field object.

 ’Display any one property name of the object testUser 
 set bindery = CreateObject ("ucx:Bindery") 
 set entry = bindery.Element ("Testuser") 
 Fields = entry.Fields 
 Fields.Reset() 
 while (fields.HasMoreElements()) 
 field = Fields.Next() 
 Print (field.Flag) 
 wend
 

1.6.2 Name property

Returns the name of the Field object.

Syntax

 object.Name
 

Type

String.

Attributes

Read-only.

Example

This example returns the name of the Field object.

 ’Display any one property name of the object TestUser 
 set bindery = CreateObject ("ucx:Bindery") 
 set entry=bindery.Element ("TestUser") 
 fields =entry.Fields 
 fields.Reset() 
 while (fields.HasMoreElements()) 
      set field=Fields.next() 
      Print(field.Name) 
 wend
 

1.6.3 Type property

Gives the Field object's type.

Syntax

 object.Type
 

Type

None.

Attributes

None.

Example

This example gives the Field object's type.

 ’Display any one property name of the object TestUser 
 set bindery = CreateObject ("ucx:Bindery") 
 set entry=bindery.Element ("TestUser") 
 fields =entry.Fields 
 fields.Reset() 
 while (fields.HasMoreElements()) 
      set field=Fields.Next() 
      Print ("Field.Name: " &Field.Name &" Field Type: "&Field.Type) 
 wend
 

1.6.4 ValueExists property

Determines whether a Field object has a value.

Syntax

 object.ValueExists
 

Type

Boolean.

Attributes

Read-only.

Remarks

This property uses the ReadFieldValue method to retrieve the actual value. It returns TRUE if the field has a value, else returns FALSE.

Example

This example returns TRUE if the field has a value, else returns FALSE.

 ’Display any one property name of the object TestUser 
 set bindery = CreateObject ("ucx:Bindery") 
 set entry=bindery.Element ("TestUser") 
 fields =entry.Fields 
 fields.Reset() 
 while (fields.HasMoreElements()) 
      Set field=Fields.next() 
      Print("Field Name: " &Field.Name &" Field Has Value? " &field.ValueExists) 
 wend