Results 1 to 3 of 3

Thread: loading a object?

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Sep 1999
    Location
    Phoenix, az
    Posts
    1,517
    Whats the command to make a new object.

    I have a line named BorderLine(0) and
    I want to make like 100 with a loop
    and I want them to have the same name,
    How do I do that at runtime.

    Thanks.

  2. #2
    Guest
    Code:
    For I = 1 To 100
        Load BorderLine(I)
        With BorderLine(I)
        .X1 = I
        .X2 = I * 20
        .Y1 = I * 3
        .Y2 = I * 40
        .Visible = True
        End With
    Next I

  3. #3
    _______ HeSaidJoe's Avatar
    Join Date
    Jun 1999
    Location
    Canada
    Posts
    3,946

    <?>

    Make BorderLine with an index of 0
    Code:
    Private Sub Command1_Click()
    'something to play with.
        Dim intcre As Integer
        
        Do Until intcre = 100
            intcre = intcre + 1
            Load BorderLine(intcre)
            BorderLine(intcre).X1 = BorderLine(intcre - 1).X1 + 50
            BorderLine(intcre).Y1 = BorderLine(intcre - 1).Y1 + 50
            BorderLine(intcre).Visible = True
            
        Loop
    
    End Sub
    "A myth is not the succession of individual images,
    but an integerated meaningful entity,
    reflecting a distinct aspect of the real world."

    ___ Adolf Jensen

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