Results 1 to 9 of 9

Thread: Initialize Array Without Default Value *SOLVED*

Threaded View

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Dec 2013
    Location
    Earth
    Posts
    230

    Initialize Array Without Default Value *SOLVED*

    Hi! I'm working on an art program, I have a 2D array of colors, and I need to find out how to set all the values to a specific color when I initialize it. (I want every element in the array to be black when this array is initialized, but it seems like the default value is Color[Empty] which looks transparent.) Is there any way to do this without a For/While loop?

    Code:
    Private Shared Tiles_Private(Width, Height) As Color
    Any help is appreciated, thanks!
    ~Nic
    Last edited by NinjaNic; Dec 2nd, 2016 at 01:47 PM.

Tags for this Thread

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