Announcement

Collapse
No announcement yet.

Filling Arrays

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Paul Squires
    replied
    Also, check out the PEEK function information in the Help file. It has an example of exactly what you want to do (copy one array to another).

    Leave a comment:


  • Paul Dixon
    replied
    Cliff,
    look in the help file under MAT
    Code:
    MAT a1() = a2()          'Assignment
    Paul.

    Leave a comment:


  • Cliff Nichols
    started a topic Filling Arrays

    Filling Arrays

    I know this must be simple, but I can not find it, and my VB corruption may be the reason why.

    Is there some easy way to do the following?
    Code:
    Redim TempArray(UBOUND(RealArray))
    TempArray() = RealArray()
    Or do I have to loop through the elements of the array and fill the TempArray 1 element at a time?

    (No big, its only 4 lines of code vs 2 lines, but I thought I would ask.
Working...
X