以文本方式查看主题 - Foxtable(狐表) (http://foxtable.net/bbs/index.asp) -- 专家坐堂 (http://foxtable.net/bbs/list.asp?boardid=2) ---- [求助]Module函数的应用? (http://foxtable.net/bbs/dispbbs.asp?boardid=2&id=185228) |
-- 作者:moseser -- 发布时间:2023/2/11 14:54:00 -- [求助]Module函数的应用? 看了一段代码,不明白什么意思, Module SoftKey Private Const VID As Short = &H3689S Private Const PID As Short = &H8762S Private Const VID_NEW As Short = &H3689S Private Const PID_NEW As Short = &H2020S Private Const VID_NEW_2 As Short = &H2020S Private Const PID_NEW_2 As Short = &H2020S Private Const DIGCF_PRESENT As Short = &H2S Private Const DIGCF_DEVICEINTERFACE As Short = &H10S Private Const INVALID_HANDLE_VALUE As Short = (-1) Private Const ERROR_NO_MORE_ITEMS As Short = 259 ………… end module 其中,module 是啥啊?这段要在哪里定义? |
-- 作者:moseser -- 发布时间:2023/2/11 15:03:00 -- 回复:(moseser)[求助]Module函数的应用? 应该用到哪里? |
-- 作者:有点蓝 -- 发布时间:2023/2/11 15:13:00 -- 不需要module ,参考这里用法:http://www.foxtable.com/webhelp/topics/1842.htm 比如 Private Const PID As Short = &H8762S 改为 public Const PID As Short = &H8762S 放到全局代码即可
|