myObj=createObject(className)
callByName(myObj,ProcedureName,vbMethod,Args())要给分哦
callByName(myObj,ProcedureName,vbMethod,Args())要给分哦
解决方案 »
- 提取txt文件里面的试题问题
- 怎么样让 WebBrowser 网页在新窗口打开?
- 怎么使桌面上某个图标不能删除
- 多步OLEDB操作产生错误 --是什么原因造成的?怎样解决?急在线等
- 怎么用VB作一个查询分析器?
- 怎样将从屏幕显示的图象抓下来,并以位图的形式保存下来。(请高手指教!!)
- 请问怎样编写得到所有输入法的图标的程序?
- 高手接招!!!
- VB工程当中必须有窗体或Sub main()才能够启动,而Sub main()必须写在模块当中,这个到底应该怎么写,能起到什么样的作用?
- 心情不爽!散分!(100大洋)
- 快来抢分:问一初级问题:vb的module 和class module 有什么区别?
- 如何发布ocx控件
如果有参数
是不是写成这样
callbyname(myobj,ProcedureName,vbMethod,Args(argumen1,argumen2))
应该写成
callbyname myobj,ProcedureName,vbMethod,argumen1,argumen2....
应该写成
callbyname myobj,ProcedureName,vbMethod,argumen1,argumen2....例如:
CallByName Text1, "Move", VbMethod, 100, 100
可直接调用,例如:
Dim fs, f, ts, s
Set fs = CreateObject("Scripting.FileSystemObject")
Set f = fs.GetFile(tFile)
Set ts = f.OpenAsTextStream(ForReading, TristateUseDefault)
页面报错
ActiveX component can't create object
你用的登陆身份不允许创建DLL中的对象。Browser error:
Microsoft VBScript runtime error '800a01ad' ActiveX component can't create object /test.asp, line 1
The line in the Active Server Pages file reads as follows:
<% set db = Server.CreateObject("ADODB.Connection") %> CAUSE
This problem is related to the permissions granted to your DLLs. The IUSR_computer and IWAM_computer account (where computer is the name of the machine) do not have the permissions necessary to execute the DLLs being instantiated on the "Server.CreateObject" line in the ASP code. RESOLUTION
The IUSR_computer and IWAM_computer account must be granted read permissions to the <drive letter>:\Program Files\Common Files\System\ADO directory.
the following is an example in MSDN:CallByName Text1, "MousePointer", vbLet, vbCrosshair
Result = CallByName (Text1, "MousePointer", vbGet)
CallByName Text1, "Move", vbMethod, 100, 100