Reverse Array

SIMIN

Regular
Joined
Mar 10, 2008
Messages
92
Hi,
I have a string array.
I want to reverse its members, is there a direct way to do this?
For example:
Input array:
a1
a2
a3
a4
a5
Output array:
a6
a5
a4
a3
a2
a1
???
 
Yes I know, but I get warning:

MyArray.Reverse(MyArray)

Warning 1: Access of shared member, constant member, enum member or nested type through an instance; qualifying expression will not be evaluated.
 
Just use Array.Reverse - VB has a pointless feature where it shows shared functions (functions that are accessed via the classname) for a variables intellisense, then warns you about doing it wrong :confused:
 
Back
Top