好吧,非常菜鸟的问题 本帖最后由 bcrun 于 2010-08-16 11:25:03 编辑 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 不清楚lz的问题出在哪里bas文件没有加载?bas模块不会使用? 我想知道上面的FORM窗体如何调用到指定的bas文件的。。因为我这几天都再看语法。。 首先要加载bas文件工程——〉添加模块——〉选择“新建”、“现存” 恩。我添加了一个form文件,然后还有一个bas文件。。然后呢?最好能有本书给我看看。。我以前接触的是c#。那个类似于实例调用这个没看见调用的东东。。让我感到迷茫。。 添加后在你的程序里调用bas模块的函数或过程bas里Public Function fun_Test(ByVal intA As Integer, ByVal intB As Integer) As Integer fun_Test = intA + intB End Functionform里Private Sub Command1_Click() Dim intX As Integer Dim intY As Integer text1 = fun_Test(intX, intY)End Sub 本帖最后由 bcrun 于 2010-08-16 11:26:56 编辑 添加后在你的程序里调用bas模块的函数或过程bas里Public Function fun_Test(ByVal intA As Integer, ByVal intB As Integer) As Integer fun_Test = intA + intB End Functionform里Private Sub Command1_Click() Dim intX As Integer Dim intY As Integer intX=5 intY=7 text1 = fun_Test(intX, intY)End Sub 本帖最后由 bcrun 于 2010-08-16 11:28:03 编辑 发现的不是调用函数。。是Form就是FORM1是怎么跑到2里面去的。先谢了。。 它先运行这 If wkRead And varCardReaderPort > 0 Then然后 End IfEnd Sub 跳出去了。。直接调到2窗体了 Read_CardNumber这个过程在哪,贴出来 他判断的时候并没有进入到Read_CardNumber ...直接结束调到另外下面的那段代码的 不可能,如果有程序在运行timer不会触发tmrTime是控件,这个不是调用,是时间触发 VB下标越界 救命救命啊~~ 怎么控制不重复录入!!!! 关于重用ActiveX组件的问题,帮忙啊!! 关于程序打包问题 !急,在线等…… 常常导致系统内存空间不足而关闭系统 爆炸性新闻!!! 学了一段时间的VB,兄弟们给我很大的帮助,现在要重回c的阵营.给我帮助最大的(分,我来了)..如果看到这个帖子,请来拿我的最后一份祝福100分. 如何强制使文本框不能插入光标(但能显示文本) 请微软全球技术支持中心回答。 谢谢大家的帮忙 求助,VB里调用SQL问题 生成Webbrowser 浏览器里后在里边的文件域无法显示问题
Public Function fun_Test(ByVal intA As Integer, ByVal intB As Integer) As Integer
fun_Test = intA + intB
End Functionform里
Private Sub Command1_Click()
Dim intX As Integer
Dim intY As Integer
text1 = fun_Test(intX, intY)
End Sub
Public Function fun_Test(ByVal intA As Integer, ByVal intB As Integer) As Integer
fun_Test = intA + intB
End Functionform里
Private Sub Command1_Click()
Dim intX As Integer
Dim intY As Integer intX=5
intY=7
text1 = fun_Test(intX, intY)
End Sub
End Sub 跳出去了。。直接调到2窗体了
这个过程在哪,贴出来
这个不是调用,是时间触发