- Код: Выделить всё
lngDBOpts = dbVersion40 + dbEncrypt
Set NewWs = DBEngine.Workspaces(0)
Set NewDB = NewWs.CreateDatabase(DBFilePath, dbLangCyrillic, lngDBOpts)
strTblName = "ATable"
Set NewTbl = NewDB.CreateTableDef(strTblName)
ret = AddTableField(NewTbl, 1, "z", dbLong, 0)
ret = AddTableField(NewTbl, 2, "zz", dbText, 127)
ret = AddTableField(NewTbl, 3, "zzz", dbText, 63)
ret = AddTableField(NewTbl, 4, "zztzz", dbText, 63)
ret = AddTableField(NewTbl, 5, "zzzrzz", dbText, 63)
ret = AddTableField(NewTbl, 6, "zzzezzz", dbText, 63)
ret = AddTableField(NewTbl, 7, "zzzrzzz", dbDate, 0)
ret = AddTableField(NewTbl, 8, "zztzz", dbText, 255)
ret = AddTableField(NewTbl, 9, "zzhhzzzz", dbMemo, 0)
ret = AddTableField(NewTbl, 10, "gg", dbBoolean, 0)
ret = AddTableField(NewTbl, 11, "dd", dbLong, 0)
ret = AddTableField(NewTbl, 12, "ff", dbLong, 0)
ret = AddTableField(NewTbl, 13, "sss", dbDate, 0)
ret = AddTableField(NewTbl, 14, "ssss", dbLong, 0)
NewDB.TableDefs.Append NewTbl
....
Создает только до "ff" ((