vbs PowerDesigner 发生意外 (0x80020009))

今天处理表结构时,PowerDesigner跑VBS脚本时报"发生意外 (0x80020009))",原因:要添加新列“xzqh_sf_dm”的表已有“xzqh_sf_dm”。属于“判断逻辑”错误 if(tab.code = "SFNJ_ZJHSRKS_DS") Then Tab.DimensionalType = 1 set col_sf_dm = tab.columns.CreateNew col_sf_dm.name = "XZQH_SF_DM 省级行政区划代码" col_sf_dm.code="XZQH_SF_DM" col_sf_dm.comment="省级行政区划代码" col_sf_dm.domain=domain_sf_dm col_sf_dm.Primary = True Set col_sf_mc = tab.columns.CreateNew col_sf_mc.name = "XZQH_SF_MC 省级行政区划名称" col_sf_mc.code="XZQH_SF_MC" col_sf_mc.comment="省级行政区划名称" col_sf_mc.domain=domain_sf_dm End if if(tab.code = "SFNJ_ZJRKZRBDQK_DS") Then Tab.DimensionalType = 1 set col_sf_dm = tab.columns.CreateNew col_sf_dm.name = "XZQH_SF_DM 省级行政区划代码" col_sf_dm.code="XZQH_SF_DM" col_sf_dm.comment="省级行政区划代码" col_sf_dm.domain=domain_sf_dm col_sf_dm.Primary = True Set col_sf_mc = tab.columns.CreateNew col_sf_mc.name = "XZQH_SF_MC 省级行政区划名称" col_sf_mc.code="XZQH_SF_MC" col_sf_mc.comment="省级行政区划名称" col_sf_mc.domain=domain_sf_dm End if

你可能感兴趣的:(脚本)