Results 1 to 2 of 2

Thread: arrays and lines

  1. #1

    Thread Starter
    Hyperactive Member MPrestonf12's Avatar
    Join Date
    Jun 1999
    Location
    NY
    Posts
    330

    Unhappy

    Can anyone try to find a problem in this code. I want to be able to fill the form up with line at set spaces apart. This code draws 1 line. If its less than 600 it draws none.

    Dim I As Integer

    For I = lngrid.UBound To 600

    Load lngrid(I + 1)
    lngrid(I + 1).Visible = True
    lngrid(I + 1).X1 = 0
    lngrid(I + 1).X2 = Screen.Width
    lngrid(I + 1).Y1 = lngrid(0).Y1 + 150
    lngrid(I + 1).Y2 = lngrid(0).Y2 + 150
    Next I
    Matt

  2. #2
    Guru Yonatan's Avatar
    Join Date
    Apr 1999
    Location
    Israel
    Posts
    892
    Change this line:

    For I = Ingrid.UBound To 600

    To this line:

    For I = Ingrid.LBound To Ingrid.UBound

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