|
|

楼主 |
发表于 2025-8-25 19:46:23
|
显示全部楼层
湖北省黄石市
本帖最后由 斗战胜猴 于 2025-8-25 20:32 编辑
枚举表名
| 变量名 | 类 型 | 静态 | 数组 | 备 注 | | 表名 | 文本型 | | | | i | 整数型 | | | | 对象 | 对象 | | | | rsSchema | 对象 | | |
rsSchema = 集Connection. 对象型方法 (“OpenSchema”, 20 )rsSchema. 方法 (“MoveFirst”, )rsSchema. 方法 (“Move”, 4, )清除数组 (表名数组 ) 变量循环首 (0, rsSchema. 读对象型属性 (“Fields”, ). 读数值属性 (“Count”, ) - 1, 1, i ) 对象 = rsSchema. 读对象型属性 (“Fields”, ). 读对象型属性 (“Item”, i ) 如果真 (对象. 读文本属性 (“Name”, ) = “TABLE_NAME”)  判断循环首 (rsSchema. 读逻辑属性 (“EOF”, ) = 假)   表名 = 对象. 读文本属性 (“Value”, )  加入成员 (表名数组, 表名 )   rsSchema. 方法 (“movenext”, )  判断循环尾 ()  变量循环尾 ()rsSchema. 方法 (“Close”, )rsSchema. 清除 ()返回 (取数组成员数 (表名数组 )) rsSchema = 数据库mdb. Get_Connection (). 对象型方法 (“OpenSchema”, 20 )ActiveConnection集 = 数据库mdb. Get_Connection (). 对象型方法 (“OpenSchema”, 20 ). 读属性 (“ActiveConnection”, )Recordset记录集. 写属性 (“ActiveConnection”, ActiveConnection集 )| 变量名 | 类 型 | 静态 | 数组 | 备 注 | | 文本 | 文本型 | | | | EOF | 逻辑型 | | | | i | 整数型 | | | | 对象 | 对象 | | |
rsSchema. 方法 (“MoveFirst”, ) 判断循环首 (rsSchema. 读逻辑属性 (“EOF”, ) = 假) 变量循环首 (0, rsSchema. 读对象型属性 (“Fields”, ). 读数值属性 (“Count”, ) - 1, 1, i )  对象 = rsSchema. 读对象型属性 (“Fields”, ). 读对象型属性 (“Item”, i )  如果真 (对象. 读文本属性 (“Name”, ) = “TABLE_NAME”)   文本 = 对象. 读文本属性 (“Value”, )      变量循环尾 () rsSchema. 方法 (“movenext”, ) 判断循环尾 () |
-
|