嗨阿什利。>对不起如果我问的是愚蠢的问题。每个人都知道唯一的愚蠢问题是那些没有被问到的问题,所以不要忘记提问!>附上是示例是的,我看到了几个问题。
你声明了一个名为MSComm的变量,然后尝试执行“set MSComm1 = CreateObject(MSComm)”。首先,变量名必须匹配。其次,CreateObject的参数是一个字符串,而不是其他类型的东西。这就是错误来自的地方。
尝试访问一个名为MSComm的变量将其传递给了创建对象,并发现它尚未初始化。接下来,您要创建的对象的名称是“MSCommLib.MSComm”。将声明中的您的变量名称更改为MSComm1
并更改CreateObject调用,它将工作。-SHAWN ----您目前订阅vrf为:r***@soco.agilent.com要订阅,请发送一封空白电子邮件至“join-vrf@it.lists.it.agilent.com
“。要取消订阅,请发送一封空白电子邮件至”leave-vrf@it.lists.it.agilent.com“。要发送邮件到此邮件列表,请发送电子邮件至”vrf@agilent.com“。如果您需要有关邮件列表的帮助
发送消息给“owner-vrf@it.lists.it.agilent.com”。
以上来自于谷歌翻译
以下为原文
Hi Ashley.
> Sorry If I am asking dumb questions.
Everybody knows the only dumb questions are those not asked, so don't feel
bad about asking!
> Attached is the example
Ah yes, I see a couple problems. You declared a variable named MSComm and
then tried to execute "set MSComm1 = CreateObject(MSComm).
First, the variable names must match. Second, the argument to CreateObject
is a string, not something of another type. This is where the error came
from. VEE tried to access a variable called MSComm to pass it to
CreateObject, and found that it hadn't been initialized yet. Next, the name
of the object you want to create is "MSCommLib.MSComm". Change the name of
your variable in the declare to MSComm1 and change the CreateObject call and
it will work.
-SHAWN-
---
You are currently subscribed to vrf as: [email=r***@soco.agilent.com]r***@soco.agilent.com[/email]
To subscribe send a blank email to "join-vrf@it.lists.it.agilent.com".
To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".
To send messages to this mailing list, email "vrf@agilent.com".
If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com".
嗨阿什利。>对不起如果我问的是愚蠢的问题。每个人都知道唯一的愚蠢问题是那些没有被问到的问题,所以不要忘记提问!>附上是示例是的,我看到了几个问题。
你声明了一个名为MSComm的变量,然后尝试执行“set MSComm1 = CreateObject(MSComm)”。首先,变量名必须匹配。其次,CreateObject的参数是一个字符串,而不是其他类型的东西。这就是错误来自的地方。
尝试访问一个名为MSComm的变量将其传递给了创建对象,并发现它尚未初始化。接下来,您要创建的对象的名称是“MSCommLib.MSComm”。将声明中的您的变量名称更改为MSComm1
并更改CreateObject调用,它将工作。-SHAWN ----您目前订阅vrf为:r***@soco.agilent.com要订阅,请发送一封空白电子邮件至“join-vrf@it.lists.it.agilent.com
“。要取消订阅,请发送一封空白电子邮件至”leave-vrf@it.lists.it.agilent.com“。要发送邮件到此邮件列表,请发送电子邮件至”vrf@agilent.com“。如果您需要有关邮件列表的帮助
发送消息给“owner-vrf@it.lists.it.agilent.com”。
以上来自于谷歌翻译
以下为原文
Hi Ashley.
> Sorry If I am asking dumb questions.
Everybody knows the only dumb questions are those not asked, so don't feel
bad about asking!
> Attached is the example
Ah yes, I see a couple problems. You declared a variable named MSComm and
then tried to execute "set MSComm1 = CreateObject(MSComm).
First, the variable names must match. Second, the argument to CreateObject
is a string, not something of another type. This is where the error came
from. VEE tried to access a variable called MSComm to pass it to
CreateObject, and found that it hadn't been initialized yet. Next, the name
of the object you want to create is "MSCommLib.MSComm". Change the name of
your variable in the declare to MSComm1 and change the CreateObject call and
it will work.
-SHAWN-
---
You are currently subscribed to vrf as: [email=r***@soco.agilent.com]r***@soco.agilent.com[/email]
To subscribe send a blank email to "join-vrf@it.lists.it.agilent.com".
To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".
To send messages to this mailing list, email "vrf@agilent.com".
If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com".
举报