没有循环,如何检查两个数组是否相等? [英] Without loops, how to check if two arrays are equal or not?
本文介绍了没有循环,如何检查两个数组是否相等?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在VBScript中有两个等维数组,我想检查它们是否包含准确的值.如果它们只有一个值不同,那么它们就不相等.
I have two equal-dim arrays in VBScript and I would like to check if they contain the exact values. If they differ in only one value, then they are not equal.
我不在乎值本身.我需要在没有循环的情况下进行操作.我的意思类似于 if arrx()= arry()然后
.
I don't care about the values themselves. And I need to do it WITHOUT loops. I mean something similar to if arrx() = arry() then
.
推荐答案
已编辑以适应注释.
也许这可以(取决于实际数据)达到目的
Maybe this could (depending on real data) do the trick
If Join(arrx, Chr(0)) = Join(arry, Chr(0)) Then
这篇关于没有循环,如何检查两个数组是否相等?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文