I have been trying to set the datatype for a column to 'tinyint' without success. So far I have been able to set it as far as 'smallint'. Below is the DTO code for adding the column.
Set Column = New DtoColumn
With Column
.Decimal = 0
.Flags = dtoColumnDefault
.ISR = ""
.Name = "field4"
.Number = 3
.Size = 2 '2 = smallint, 4 = integer
.Type = dtoTypeInteger
End With
Table.Columns.Add Column
If I change the .size value to 4 I get an integer. However setting the .size value to 1 or zero will give me 'unknown' in the data type column.
Can I make the data type tinyint via DTO and if so how can it be done, what values do I need to change?
One more thing, is it possible to set a default field value for a column? If so how?
Thanks and Good Luck!
zemp
Set Column = New DtoColumn
With Column
.Decimal = 0
.Flags = dtoColumnDefault
.ISR = ""
.Name = "field4"
.Number = 3
.Size = 2 '2 = smallint, 4 = integer
.Type = dtoTypeInteger
End With
Table.Columns.Add Column
If I change the .size value to 4 I get an integer. However setting the .size value to 1 or zero will give me 'unknown' in the data type column.
Can I make the data type tinyint via DTO and if so how can it be done, what values do I need to change?
One more thing, is it possible to set a default field value for a column? If so how?
Thanks and Good Luck!
zemp