sirbounty
asked on
place data in array
What's an easier way to write this (or is there) in .net?
FruitArray(0)="Apple"
FruitArray(1)="Banana"
FruitArray(2)="Cherry"
FruitArray(3)="Grapes"
FruitArray(4)="Melons"
FruitArray(5)="Pineapple"
FruitArray(6)="Strawberry"
FruitArray(0)="Apple"
FruitArray(1)="Banana"
FruitArray(2)="Cherry"
FruitArray(3)="Grapes"
FruitArray(4)="Melons"
FruitArray(5)="Pineapple"
FruitArray(6)="Strawberry"
ASKER
I get
Overload resolution failed because no accessible "New" accepts this number of arguments...
Overload resolution failed because no accessible "New" accepts this number of arguments...
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
or
FruitArray() = New String {"Apple","Banana","Cherry"