PreviousDTO Programmer's Guide (9.1 revision 1) Next

DtoColumn Object

Show this topic in Library frames

This object represents a table column.

Properties

Decimal
Gets or sets the decimal places for a column
Flags
Gets or sets the flags for a column
ISR
Gets or sets the ISR for a column
Name
Gets or sets the Name for a column
Number
Gets or sets the ordinal of a column
Size
Gets or sets the size of the column
Type
Gets or sets the column type. This is an enumerated value. See Btrieve Types for a list of possible values.
TypeName
Returns a string value containing the type name.

Methods

None

Remarks

This object allows you to display properties of a specific table column.

Example
' Instantiate and open dictionary 
Dim dictionary as new DtoDictionary 
Dim result as DtoResult 
result = dictionary.Open("c:\pvsw\demodata") 
' Get STUDENT table from DEMODATA database 
Dim students_table as DtoTable 
Set students_table = dictionary.Tables("STUDENTS") 
' Get columns collection from STUDENT table 
Dim students_cols as DtoColumns 
Set students_cols = students_table.Columns 
' Retrieve first column and get its name 
Dim first_col as DtoColumn 
Set first_col = students_cols(1) 
name = first_col.Name 
See Also

DtoColumns Collection
DtoTable Object


Chapter contents
Publication contents

Prev topic: DtoColumns Collection
Next topic: DtoIndexes Collection