Is there a VB function that will return "n" copies of a value? For example, is there a way to generate an array containing 7 9's?
I'd like something like this:
(I realize that the ?myarray won't work. It's just for illustration).
I'd like something like this:
Code:
Dim myarray()
myarray = copies(9,7)
?myarray
9 9 9 9 9 9 9