Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
这可能是一个简单的,但我似乎无法找出问题所在:
if temp_array(1) = temp_string2 & temp_array(2) = "w" then .... end if
这些值为:
temp_array(1) = "test1"
temp_string2 = "test2"
temp_array(2) = "w"
我收到突出显示条件比较的类型不匹配错误...
&是字符串连接,不是逻辑and。
&
and
if temp_array(1) = temp_string2 And temp_array(2) = "w" then