简体   繁体   English

Access / VBA表达式的返回值是什么意思?

[英]What does the return value of an Access/VBA expression mean?

I have a huge expression for a textbox in the CONTROL SOURCE . 对于CONTROL SOURCE的文本框,我有一个非常好的表达。 Sometimes it returns 0 and sometimes -1 , what do these values mean? 有时返回0 ,有时返回-1 ,这些值是什么意思?

Read here http://msdn.microsoft.com/en-us/library/aa164500%28office.10%29.aspx 在这里阅读http://msdn.microsoft.com/en-us/library/aa164500%28office.10%29.aspx

The Boolean data type is a special case of an integer data type. 布尔数据类型是整数数据类型的特例。 The Boolean data type can contain True or False; 布尔数据类型可以包含True或False; internally, VBA stores the value of True as -1 , and the value of False as 0 在内部,VBA将True的值存储为-1 ,将False的值存储为0

VBA uses 0 for False and -1 for True. VBA使用0表示False,使用-1表示True。 (But generally a non-Null, non-zero value will be evaluated as True.) So it looks like your expression is returning a Boolean (True/False) value. (但通常,非null,非零值将被评估为True。)因此,您的表达式似乎返回了布尔值(True / False)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Oracle:此表达式“ &lt;&gt;”在SQL查询中是什么意思? - Oracle: What does this expression “<>” mean in a SQL query? 这个正则表达式在 Oracle 中是什么意思? - What does this regular expression mean in Oracle? 实体框架核心 DbContext.Database.ExecuteSqlRawAsync() 返回 -1 作为“rowsAffected”返回值。 这是什么意思? - Entity Framework Core DbContext.Database.ExecuteSqlRawAsync() returns -1 as “rowsAffected” return value. What does this mean? mysql-sql中的值之前是什么意思? - mysql - what does a : before a value in sql mean? SQL 查询 - 取这个 boolean 表达式的 MIN 是什么意思? - SQL query - What does taking the MIN of this boolean expression mean? rs.Fields(0)是什么意思? (ADODB)VBA - what does rs.Fields(0) mean? (ADODB) VBA Access VBA函数不会在查询中返回任何值 - Access VBA Function doesn't return any value on query 您的查询不包含指定的表达式。 这是什么意思,我该如何解决? - Your query does not include the specified expression. What does it mean and how do I fix it? 在SELECT语句中的值前面加上“ null”是什么意思? - What does 'null' mean when preceding a value in a SELECT statement? 是什么 <ice:outputText value=“#{exam.testName}”/> 意思? - What does <ice:outputText value=“#{exam.testName}”/> mean?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM