You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Description

Adds a new attribute (specified by the given name and key/non-key value) to the entity, and returns the new attribute to the caller. PARAMETERS: Name as String, IsKey as Boolean.

Syntax

Public Function Add( _
   ByVal Name As Variant, _
   ByVal IsKey As Variant _
) As AttributeObj

Parameters

  • Name
  • IsKey

Example

Dim MyEntity As Entity 
Dim MyAttribute As AttributeObj 
Dim bIsKey As Boolean 
Dim AttributeName As String 

bIsKey = True 
AttributeName = "City" 

Set MyAttribute = MyEntity.Attributes.Add(AttributeName, bIsKey) 

See Also

  • No labels