PreviousDTO Programmer's Guide (9.1 revision 1) Next

DtoTable Object

Show this topic in Library frames

An object representing a table in a database.

Properties

Flags
Gets or sets the flags associated with this table. See Table Flags for a list of possible values.
Location
Gets the file name of the table. To determine the path of this file, use the properties of the DtoDatabase Object .
Name
Gets or sets the name of the table.
Overwrite
If True, this table can overwrite a table with the same name during an AddTable method call.
True = overwrite table
False = do not overwrite table and return an error

Collections
DtoColumns Collection 
DtoIndexes Collection 
Methods

None

Remarks

DtoTable object contains two collection objects: Columns and Indexes. All operations invloving columns and indexes are accomplished using these objects.

To add a new table to a dictionary, use the AddTable method.

To remove a table from a dictionary, use the DropTable method.

Example

For an example of creating a new DtoTable object, see AddTable method.

Dim dictionary as new DtoDictionary 
Dim table as new DtoTable 
Dim result as DtoResult 
Dim location as string 
'determine file name of Billing table 
result = dictionary.Open("c:\pvsw\demodata") 
For Each table In dictionary.Tables 
   If table.Name = "Billing" Then 
      location = table.Location 
   End If       
next  
See Also

DtoTables Collection
DtoColumn Object
DtoIndex Object
DtoDictionary Object


Chapter contents
Publication contents

Prev topic: DtoTables Collection
Next topic: DtoColumns Collection