是德科技
直播中

李秀云

7年用户 814经验值
私信 关注
[问答]

变量是否自动初始化为null?

>变量是否自动初始化为null?取决于您的配置方式。
在File-> Default Preferences下,如果选中PreRun的Delete Variables,则无论何时程序启动,都没有变量。
在设置变量之前,声明的变量没有任何价值。
变量变量可以是Null或Empty - 不一样。
Null表示空值0或“”。
空意味着他们从未被设置过。-SHAWN-

以上来自于谷歌翻译


     以下为原文

  > Are variables automatically initialized as null?

Depends on how you're configured. Under File->Default Preferences, if Delete Variables at PreRun is checked, then whenever the program starts there are no variables. Declared variables have no value until you set them. Variant variables can be Null or Empty - not the same thing. Null means null value 0 or "". Empty means they've never been set.
-SHAWN-

回帖(15)

h1654155275.5708

2019-10-23 08:32:11
To All,变量是否自动初始化为null?
如果没有,我如何将它们初始化为null?谢谢,Dave ---您目前订阅了vrf:r***@soco.agilent.com要订阅,请发送电子邮件至:“vrf-request@lists.it.agilent。
com“在邮件正文中单词subscribe。要取消订阅,请发送空白电子邮件至”leave-vrf@it.lists.it.agilent.com“。要向此邮件列表发送邮件,请发送电子邮件至”vrf@agilent.com“

如果您需要有关邮件列表的帮助,请发送邮件至“owner-vrf@it.lists.it.agilent.com”。在“www.oswegosw.com/vrf_archive/”上搜索“非官方vrf档案”。

以上来自于谷歌翻译


     以下为原文

  

     To All,

     Are variables automatically initialized as null?  If not, how do
      I initialize them as null?

     Thanks,

     Dave

---
You are currently subscribed to vrf as: [email=r***@soco.agilent.com]r***@soco.agilent.com[/email]
To subscribe please send an email to: "vrf-request@lists.it.agilent.com" with the word subscribe in the message body.
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".
Search the "unofficial vrf archive" at "www.oswegosw.com/vrf_archive/".
举报

h1654155275.5708

2019-10-23 08:38:30
To All,变量是否自动初始化为null?
如果没有,我如何将它们初始化为null?谢谢,Dave ---您目前订阅了vrf:r***@soco.agilent.com要订阅,请发送电子邮件至:“vrf-request@lists.it.agilent。
com“在邮件正文中单词subscribe。要取消订阅,请发送空白电子邮件至”leave-vrf@it.lists.it.agilent.com“。要向此邮件列表发送邮件,请发送电子邮件至”vrf@agilent.com“

如果您需要有关邮件列表的帮助,请发送邮件至“owner-vrf@it.lists.it.agilent.com”。在“www.oswegosw.com/vrf_archive/”上搜索“非官方vrf档案”。

以上来自于谷歌翻译


     以下为原文

  

     To All,

     Are variables automatically initialized as null?  If not, how do
      I initialize them as null?

     Thanks,

     Dave

---
You are currently subscribed to vrf as: [email=r***@soco.agilent.com]r***@soco.agilent.com[/email]
To subscribe please send an email to: "vrf-request@lists.it.agilent.com" with the word subscribe in the message body.
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".
Search the "unofficial vrf archive" at "www.oswegosw.com/vrf_archive/".
举报

吴樵

2019-10-23 08:50:46
在默认首选项下,在prerun中设置删除变量将完全相同的事情-----原始消息-----来自:Mairs,David [mailto:david.mairs@hp.com]发送:2006年4月27日,星期四
9:24 AMT:VRFSubject:[vrf] VariablesTo All,变量是否自动初始化为null?
如果没有,我如何将它们初始化为null?谢谢,Dave ---您目前订阅了vrf:RPratt@symmetricom.com Tosubscribe请发送电子邮件至:“vrf-request@lists.it.agilent.com”
在邮件正文中单词subscribe。要取消订阅,请发送一封空白电子邮件至“leave-vrf@it.lists.it.agilent.com”。要向此邮件列表发送邮件,请发送电子邮件至“vrf@agilent.com”。
如果您需要有关邮件列表的帮助,请发送邮件至“owner-vrf@it.lists.it.agilent.com”。在“www.oswegosw.com/vrf_archive/”上搜索“非官方vrf档案”.---
您目前订阅了vrf:r***@soco.agilent.com要订阅,请发送电子邮件至:“vrf-request@lists.it.agilent.com”,邮件正文中包含subscribe一词。要取消订阅,请发送空白电子邮件
到“leave-vrf@it.lists.it.agilent.com”。要发送邮件到这个邮件列表,请发送电子邮件至“vrf@agilent.com”。
如果您需要有关邮件列表的帮助,请发送邮件至“owner-vrf@it.lists.it.agilent.com”。在“www.oswegosw.com/vrf_archive/”上搜索“非官方vrf档案”。来自r*** @
hpnmr***2 Thu Apr 27 09:25:29 2006年日期:2006年4月27日星期四09:25:29 -0700(PDT)致:david.mairs@hp.comCc:vrf@agilent.com主题:Re:[vrf] VariablesIn-回复
-To:X-Mailer:Ishmail 1.3.3-980625-hp MIME-Version:1.0Content-Type:text / plainFrom:Stan Bischof(Richard S)状态:O“Mairs,David”写道:>>> To All,
>>变量是否自动初始化为null?
no>如果没有,怎么做>我把它们初始化为null?将它们单独设置为nullStan -------------------------------
------------------------------------------- Stan Bischof Agilent Technologies 707-577
-3994 stan_bischof@agilent.com-------------------------------------------
------------------------------- Subject:RE:RE [2]:[vrf] VariablesDate:Mon,2006年5月1日
09:46:20 -0700来自:“Mairs,David”致:“Stan Bischof(理查德S)”斯坦,我有一份测试清单,如果技术人员希望运行其中一个可用的那么我必须做一些事情
未选择的9个测试。将它们设置为null满足全局。
我想我得到了它的工作,总是谢谢你的帮助。
而且我确信有更简单的方法,但只要有效,我们就会有什么假设。
如果你感兴趣我可以发给你我正在处理的代码吗?Dave -----原始消息-----来自:Stan Bischof(Richard S)[mailto:r***@soco.agilent.com]发送:星期一,
2006年5月1日8:21 AM:Mairs,DavidSubject:RE [2]:[vrf] Variables“Mairs,David”写道:> Stan,>>我如何将它们单独设置为null?创建一个空值 - 就像一个
emtpy字符串常量(“”)并设置它们。更重要的是---为什么要将变量设置为空值?
我问,因为这在VEE内部是非常不寻常的,你想要完成的事情可能会以更优雅的方式完成。所以你想要完成什么?Stan -------------
--------------------------------------------------
----------- Stan Bischof安捷伦科技公司707-577-3994stan_bischof@agilent.com--------------------------
- - - - - - - - - - - - - - - - - - - - - - - - 学科:
RE:[vrf] VariablesDate:星期五,2006年4月28日07:58:24 -0700来自:“Mairs,David”致:“Stan Bischof(Richard S)”Stan,如何将它们单独设置为null?谢谢,Dave-
----原帖-----来自:Stan Bischof(Richard S)[mailto:r***@soco.agilent.com]发送时间:2006年4月27日星期四上午9:25到:Mairs,DavidCc:vrf @ agilent
.comSubject:Re:[vrf] Variables“Mairs,David”写道:>>> To All,>>>变量是否自动初始化为null?
no>如果没有,怎么做>我把它们初始化为null?将它们单独设置为nullStan -------------------------------
------------------------------------------- Stan Bischof Agilent Technologies 707-577
-3994stan_bischof@agilent.com--------------------------------------------
------------------------------

以上来自于谷歌翻译


     以下为原文

  Under Default Preferences, setting  delete variables at prerun will do
roughly the same thing

-----Original Message-----
From: Mairs, David [mailto:david.mairs@hp.com]
Sent: Thursday, April 27, 2006 9:24 AM
To: VRF
Subject: [vrf] Variables



     To All,

     Are variables automatically initialized as null?  If not, how do
      I initialize them as null?

     Thanks,

     Dave

---
You are currently subscribed to vrf as: RPratt@symmetricom.com To
subscribe please send an email to: "vrf-request@lists.it.agilent.com"
with the word subscribe in the message body.
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".
Search the "unofficial vrf archive" at "www.oswegosw.com/vrf_archive/".



---
You are currently subscribed to vrf as: [email=r***@soco.agilent.com]r***@soco.agilent.com[/email]
To subscribe please send an email to: "vrf-request@lists.it.agilent.com" with the word subscribe in the message body.
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".
Search the "unofficial vrf archive" at "www.oswegosw.com/vrf_archive/".

From r***@hpnmr***2 Thu Apr 27 09:25:29 2006
Date: Thu, 27 Apr 2006 09:25:29 -0700 (PDT)
To: david.mairs@hp.com
Cc: vrf@agilent.com
Subject: Re: [vrf] Variables
In-Reply-To:
X-Mailer: Ishmail 1.3.3-980625-hp
MIME-Version: 1.0
Content-Type: text/plain
From: Stan Bischof (Richard S)
Status: O

"Mairs, David" wrote:
>
>
>      To All,
>
>      Are variables automatically initialized as null?

no

>  If not, how do
>       I initialize them as null?

set them indivudally to null

Stan


--------------------------------------------------------------------------
Stan Bischof  Agilent Technologies  707-577-3994  stan_bischof@agilent.com
--------------------------------------------------------------------------

Subject: RE: RE[2]: [vrf] Variables
Date: Mon, 1 May 2006 09:46:20 -0700
From: "Mairs, David"
To: "Stan Bischof (Richard S)"

Stan,
I have a list of tests to be run, if the tech wants to run one of the
ten
Available then I had to do something with the 9 tests that were not
selected.
Setting them to null satisfies the global.  I think I got it working, as
always
Thanks for the help.  And I am sure there are easier ways but what's a
guy suppose to
Do as long as it works.  If your interested I can send you the code I'm
working with?

Dave



-----Original Message-----
From: Stan Bischof (Richard S) [mailto:r***@soco.agilent.com]
Sent: Monday, May 01, 2006 8:21 AM
To: Mairs, David
Subject: RE[2]: [vrf] Variables

"Mairs, David" wrote:
> Stan,
>
> How do I set them to null individually?

create a null value - like an emtpy string constant ( "" ) and set them.

More importantly though--- WHY would you want to set a variable to a
null value? I ask as this is very unusual inside of VEE and what you are
trying to accomplish may well be done in a more graceful manner.

So-- what are you trying to accomplish?

Stan


------------------------------------------------------------------------
--
Stan Bischof  Agilent Technologies  707-577-3994
stan_bischof@agilent.com
------------------------------------------------------------------------
--

Subject: RE: [vrf] Variables
Date: Fri, 28 Apr 2006 07:58:24 -0700
From: "Mairs, David"
To: "Stan Bischof (Richard S)"

Stan,

How do I set them to null individually?

Thanks,

Dave

-----Original Message-----
From: Stan Bischof (Richard S) [mailto:r***@soco.agilent.com]
Sent: Thursday, April 27, 2006 9:25 AM
To: Mairs, David
Cc: vrf@agilent.com
Subject: Re: [vrf] Variables

"Mairs, David" wrote:
>
>
>      To All,
>
>      Are variables automatically initialized as null?

no

>  If not, how do
>       I initialize them as null?

set them indivudally to null

Stan


------------------------------------------------------------------------
--
Stan Bischof  Agilent Technologies  707-577-3994
stan_bischof@agilent.com
------------------------------------------------------------------------
--
举报

吴樵

2019-10-23 09:06:31
在默认首选项下,在prerun中设置删除变量将完全相同的事情-----原始消息-----来自:Mairs,David [mailto:david.mairs@hp.com]发送:2006年4月27日,星期四
9:24 AMT:VRFSubject:[vrf] VariablesTo All,变量是否自动初始化为null?
如果没有,我如何将它们初始化为null?谢谢,Dave ---您目前订阅了vrf:RPratt@symmetricom.com Tosubscribe请发送电子邮件至:“vrf-request@lists.it.agilent.com”
在邮件正文中单词subscribe。要取消订阅,请发送一封空白电子邮件至“leave-vrf@it.lists.it.agilent.com”。要向此邮件列表发送邮件,请发送电子邮件至“vrf@agilent.com”。
如果您需要有关邮件列表的帮助,请发送邮件至“owner-vrf@it.lists.it.agilent.com”。在“www.oswegosw.com/vrf_archive/”上搜索“非官方vrf档案”.---
您目前订阅了vrf:r***@soco.agilent.com要订阅,请发送电子邮件至:“vrf-request@lists.it.agilent.com”,邮件正文中包含subscribe一词。要取消订阅,请发送空白电子邮件
到“leave-vrf@it.lists.it.agilent.com”。要发送邮件到这个邮件列表,请发送电子邮件至“vrf@agilent.com”。
如果您需要有关邮件列表的帮助,请发送邮件至“owner-vrf@it.lists.it.agilent.com”。在“www.oswegosw.com/vrf_archive/”上搜索“非官方vrf档案”。来自r*** @
hpnmr***2 Thu Apr 27 09:25:29 2006年日期:2006年4月27日星期四09:25:29 -0700(PDT)致:david.mairs@hp.comCc:vrf@agilent.com主题:Re:[vrf] VariablesIn-回复
-To:X-Mailer:Ishmail 1.3.3-980625-hp MIME-Version:1.0Content-Type:text / plainFrom:Stan Bischof(Richard S)状态:O“Mairs,David”写道:>>> To All,
>>变量是否自动初始化为null?
no>如果没有,怎么做>我把它们初始化为null?将它们单独设置为nullStan -------------------------------
------------------------------------------- Stan Bischof Agilent Technologies 707-577
-3994 stan_bischof@agilent.com-------------------------------------------
------------------------------- Subject:RE:RE [2]:[vrf] VariablesDate:Mon,2006年5月1日
09:46:20 -0700来自:“Mairs,David”致:“Stan Bischof(理查德S)”斯坦,我有一份测试清单,如果技术人员希望运行其中一个可用的那么我必须做一些事情
未选择的9个测试。将它们设置为null满足全局。
我想我得到了它的工作,总是谢谢你的帮助。
而且我确信有更简单的方法,但只要有效,我们就会有什么假设。
如果你感兴趣我可以发给你我正在处理的代码吗?Dave -----原始消息-----来自:Stan Bischof(Richard S)[mailto:r***@soco.agilent.com]发送:星期一,
2006年5月1日8:21 AM:Mairs,DavidSubject:RE [2]:[vrf] Variables“Mairs,David”写道:> Stan,>>我如何将它们单独设置为null?创建一个空值 - 就像一个
emtpy字符串常量(“”)并设置它们。更重要的是---为什么要将变量设置为空值?
我问,因为这在VEE内部是非常不寻常的,你想要完成的事情可能会以更优雅的方式完成。所以你想要完成什么?Stan -------------
--------------------------------------------------
----------- Stan Bischof安捷伦科技公司707-577-3994stan_bischof@agilent.com--------------------------
- - - - - - - - - - - - - - - - - - - - - - - - 学科:
RE:[vrf] VariablesDate:星期五,2006年4月28日07:58:24 -0700来自:“Mairs,David”致:“Stan Bischof(Richard S)”Stan,如何将它们单独设置为null?谢谢,Dave-
----原帖-----来自:Stan Bischof(Richard S)[mailto:r***@soco.agilent.com]发送时间:2006年4月27日星期四上午9:25到:Mairs,DavidCc:vrf @ agilent
.comSubject:Re:[vrf] Variables“Mairs,David”写道:>>> To All,>>>变量是否自动初始化为null?
no>如果没有,怎么做>我把它们初始化为null?将它们单独设置为nullStan -------------------------------
------------------------------------------- Stan Bischof Agilent Technologies 707-577
-3994stan_bischof@agilent.com--------------------------------------------
------------------------------

以上来自于谷歌翻译


     以下为原文

  Under Default Preferences, setting  delete variables at prerun will do
roughly the same thing

-----Original Message-----
From: Mairs, David [mailto:david.mairs@hp.com]
Sent: Thursday, April 27, 2006 9:24 AM
To: VRF
Subject: [vrf] Variables



     To All,

     Are variables automatically initialized as null?  If not, how do
      I initialize them as null?

     Thanks,

     Dave

---
You are currently subscribed to vrf as: RPratt@symmetricom.com To
subscribe please send an email to: "vrf-request@lists.it.agilent.com"
with the word subscribe in the message body.
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".
Search the "unofficial vrf archive" at "www.oswegosw.com/vrf_archive/".



---
You are currently subscribed to vrf as: [email=r***@soco.agilent.com]r***@soco.agilent.com[/email]
To subscribe please send an email to: "vrf-request@lists.it.agilent.com" with the word subscribe in the message body.
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".
Search the "unofficial vrf archive" at "www.oswegosw.com/vrf_archive/".

From r***@hpnmr***2 Thu Apr 27 09:25:29 2006
Date: Thu, 27 Apr 2006 09:25:29 -0700 (PDT)
To: david.mairs@hp.com
Cc: vrf@agilent.com
Subject: Re: [vrf] Variables
In-Reply-To:
X-Mailer: Ishmail 1.3.3-980625-hp
MIME-Version: 1.0
Content-Type: text/plain
From: Stan Bischof (Richard S)
Status: O

"Mairs, David" wrote:
>
>
>      To All,
>
>      Are variables automatically initialized as null?

no

>  If not, how do
>       I initialize them as null?

set them indivudally to null

Stan


--------------------------------------------------------------------------
Stan Bischof  Agilent Technologies  707-577-3994  stan_bischof@agilent.com
--------------------------------------------------------------------------

Subject: RE: RE[2]: [vrf] Variables
Date: Mon, 1 May 2006 09:46:20 -0700
From: "Mairs, David"
To: "Stan Bischof (Richard S)"

Stan,
I have a list of tests to be run, if the tech wants to run one of the
ten
Available then I had to do something with the 9 tests that were not
selected.
Setting them to null satisfies the global.  I think I got it working, as
always
Thanks for the help.  And I am sure there are easier ways but what's a
guy suppose to
Do as long as it works.  If your interested I can send you the code I'm
working with?

Dave



-----Original Message-----
From: Stan Bischof (Richard S) [mailto:r***@soco.agilent.com]
Sent: Monday, May 01, 2006 8:21 AM
To: Mairs, David
Subject: RE[2]: [vrf] Variables

"Mairs, David" wrote:
> Stan,
>
> How do I set them to null individually?

create a null value - like an emtpy string constant ( "" ) and set them.

More importantly though--- WHY would you want to set a variable to a
null value? I ask as this is very unusual inside of VEE and what you are
trying to accomplish may well be done in a more graceful manner.

So-- what are you trying to accomplish?

Stan


------------------------------------------------------------------------
--
Stan Bischof  Agilent Technologies  707-577-3994
stan_bischof@agilent.com
------------------------------------------------------------------------
--

Subject: RE: [vrf] Variables
Date: Fri, 28 Apr 2006 07:58:24 -0700
From: "Mairs, David"
To: "Stan Bischof (Richard S)"

Stan,

How do I set them to null individually?

Thanks,

Dave

-----Original Message-----
From: Stan Bischof (Richard S) [mailto:r***@soco.agilent.com]
Sent: Thursday, April 27, 2006 9:25 AM
To: Mairs, David
Cc: vrf@agilent.com
Subject: Re: [vrf] Variables

"Mairs, David" wrote:
>
>
>      To All,
>
>      Are variables automatically initialized as null?

no

>  If not, how do
>       I initialize them as null?

set them indivudally to null

Stan


------------------------------------------------------------------------
--
Stan Bischof  Agilent Technologies  707-577-3994
stan_bischof@agilent.com
------------------------------------------------------------------------
--
举报

更多回帖

发帖
×
20
完善资料,
赚取积分