Name Property (Remote Data)

       

Returns the name of a RemoteData object.

Syntax

object.Name

The object placeholder represents an object expression that evaluates to an object in the Applies To list.

Return Values

The Name property returns a string expression that represents the name assigned to the object. The following table describes how each object is assigned its name.

Assigning the Name Property for Remote Data Objects

Remote Data Object Name property is determined by …
rdoEnvironments(0) rdoEngine — Set to "Default_Environment."
rdoEnvironments(1-n) name argument of rdoCreateEnvironment.
rdoConnection Data source name (DSN) used for connection.
rdoResultset First 256 characters of the SQL query.
rdoQuery name argument in CreateQuery method or set directly for stand-alone rdoQuery objects.
rdoTable Database table name once the rdoTables collection is populated.
rdoParameter "Paramn" where "n" is the ordinal number.
rdoColumn Database column name.
rdoError Not applicable. rdoErrors collection members can only be referenced by their ordinal number.

Remarks

rdoTable and rdoQuery objects can't share the same name. In other words, you cannot create two rdoQuery objects that have the same name.

Use the Name property to reference members of a collection in code, but in most cases, it is easier to simply use the ordinal number. Generally, you can use the Name property to map database table and column names.