Results 1 to 19 of 19

Thread: [RESOLVED] Problem with Color.FromName

Threaded View

  1. #10
    eXtreme Programmer .paul.'s Avatar
    Join Date
    May 2007
    Location
    Chelmsford UK
    Posts
    26,424

    Re: [RESOLVED] Problem with Color.FromName

    Why declare colours(2) and chk(2)???
    You’re only using 2 elements in both. You know arrays are zero based, but you need to declare arrays with the Upperbound and not the Length...

    I.e. colours(1), chk(1)

    Edit: That’s how to declare and dimension an array in VB. In C languages, you do use the array Length when declaring and dimensioning...
    Last edited by .paul.; Sep 25th, 2020 at 07:18 PM.

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