' cTable.cls Class
Private Sub CreateDataFields()
' ***** MODIFY *****
' Before creating fields, modify the FIELD_INDEX Enum in bVBDB.bas
' Then use the values from the Enum as subscripts for your fields
' Note: You can assign the Constant CurrentDateTime (-1) to a date
' field if you want the value Now() to be used as the default.
With m_FieldDefinitions(FIELD_01)
.ArrayField = False
.DataType = dataBoolean
.DefaultValue = False
.FieldName = "Boolean 1"
.Index = NewFieldIndex
.Required = False
.RequireUniqueEntry = False
.SystemField = False
End With
' Code for remaining fields not shown for brevity
' ***** END MODIFY *****
End Sub |