Results 1 to 8 of 8

Thread: Inserting an element into an array (RESOLVED)

Threaded View

  1. #1

    Thread Starter
    Only Slightly Obsessive jemidiah's Avatar
    Join Date
    Apr 2002
    Posts
    2,431

    Inserting an element into an array (RESOLVED)

    I searched the forums and found a great post dealing with a string array... but my array has a complication:

    It's a UDT array, and some of the elements of the UDT are arrays themselves. So pretty much my array looks like this:

    MyArray(1 to 2)
    MyArray(1).Name
    MyArray(1).Number
    MyArray(1).Price(1 to 5)
    MyArray(2).Name [string]
    MyArray(2).Number [single]
    MyArray(2).Price(1 to 4) [array of singles]

    Except that there are around 20 sub elements instead of 3, and there are several hundred elements instead of 2. If there's no easier way I could just loop through and manually rearrange the array as needed... but it seems like there should be some type of API solution or something, because this is a common question.
    Last edited by jemidiah; Jun 30th, 2006 at 09:31 PM. Reason: Resolved
    The time you enjoy wasting is not wasted time.
    Bertrand Russell

    <- Remember to rate posts you find helpful.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width