• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 148
  • Last Modified:

print array contents

Hi,

Please kindly assist how can we print the contents of an array?

vb6

Thanks
0
DexterJones
Asked:
DexterJones
  • 3
  • 2
1 Solution
 
EDDYKTCommented:
use loop.

What is your array look like?
0
 
DexterJonesAuthor Commented:
arr(4)
0
 
DexterJonesAuthor Commented:
isn't there a single line command to print out the values?

debug,print arr(1-4)
0
 
EDDYKTCommented:
not that i know

i.e.

Dim arr(4) As Integer
Dim i

For i = LBound(arr) To UBound(arr): Debug.Print arr(i): Next
0
 
DexterJonesAuthor Commented:
Debug.Print Join(Arr, ",")

found it
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now