vb.net - Why one over another: UBound or Length -


There may be a specific reason to choose a UBound plus length Could?

Here is the code and the 1-dimension has passed as the second parameter. Any benefit against / code> [/ code> / P>

They do different things! Ubound gives you the last indicator in the array, while length gives you length of time. Because usually UBound will be length - 1 .

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -