Announcement

Collapse
No announcement yet.

Append Array

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

  • Edwin Knoppert
    replied
    Try redim and MoveMemory api instead.

    ------------------

    Leave a comment:


  • Mike Trader
    started a topic Append Array

    Append Array

    Is there such a command?

    Is there a neat way to add one array to another without:

    Code:
    DIM MyArray(8)
    DIM YourArray(6)
    
    REDIM PRESERVE MyArray(UBOUND(MyArray)+UBOUND(YourArray))
    FOR i = 1 TO UBOUND(YourArray))
        MyArray(UBOUND(MyArray)+i) = YourArray(i)
    NEXT
    (I never use element 0, saves all that confusing -1 stuff)

    ------------------
    Kind Regards
    Mike
Working...
X
😀
🥰
🤢
😎
😡
👍
👎