Returns or sets a unique name for each object within the current Data Environment designer. This can be the name of a DEAggregate, DECommand, DEConnection, DEField, or DEParameter object. For DEField objects, this is a read-only property.
The Name property enables you to easily differentiate multiple objects within your DataEnvironment object. Each name must be unique within its domain, as duplicate names result in errors. That is, the names of the DEConnection and DECommand objects must be unique among each other, and the name of a DEAggregate object must be unique among the DEField and other DEAggregate objects.
Syntax
object.Name [=string]
The Name property syntax has these parts:
Part | Description |
object | An object expression that evaluates to an item in the Applies To list. |
string | A string expression that evaluates the name of the DataEnvironment, DEAggregate, DECommand, DEConnection, DEField, or DEParameter object. |
Remarks
When you create a DataEnvironment object, its default name is "DataEnvironment" and an integer, such as DataEnvironment1. This default name is similar for the DECommand, DEConnection, and DEAggregate objects. You should set the Name property and provide the object with a meaningful, unique name. For example, if you are a creating a DEConnection object based on the Northwind database, a logical name could be "Northwind." Likewise, if you are creating a DECommand object based on the Customers table, a logical name could be "Customers."