ok this is weird, im trying to create an array of colors. approach 2 doesn't work and i do not know why
Code:'approach 1: works Dim list As Color() = New Color() {Color.FromArgb(255, 0, 0), Color.FromArgb(0, 255, 0), Color.FromArgb(0, 0, 255)}if instead i wish to create an array of strings, both approach works, that's weirdCode:'approach 2: fails.. why? Dim list() As Color = New Color() {Color.FromArgb(255, 0, 0), Color.FromArgb(0, 255, 0), Color.FromArgb(0, 0, 255)}




Reply With Quote