Click here to Skip to main content
15,905,508 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Creating an new form with race results Pin
The Man from U.N.C.L.E.16-Dec-04 6:57
The Man from U.N.C.L.E.16-Dec-04 6:57 
GeneralRe: Creating an new form with race results Pin
m_hussein4-Jan-05 21:33
m_hussein4-Jan-05 21:33 
Generalminor problems with application Pin
harrysk16-Dec-04 0:22
harrysk16-Dec-04 0:22 
GeneralRe: minor problems with application Pin
Tom John16-Dec-04 1:56
Tom John16-Dec-04 1:56 
QuestionHow to list installed device drivers using VB6? Pin
pagemastah16-Dec-04 0:21
pagemastah16-Dec-04 0:21 
GeneralParsing arrays into functions as input. Pin
Alsvha15-Dec-04 22:47
Alsvha15-Dec-04 22:47 
GeneralRe: Parsing arrays into functions as input. Pin
Dave Kreskowiak16-Dec-04 3:35
mveDave Kreskowiak16-Dec-04 3:35 
GeneralRe: Parsing arrays into functions as input. Pin
The Man from U.N.C.L.E.16-Dec-04 7:09
The Man from U.N.C.L.E.16-Dec-04 7:09 
As said in the other post, you probably want to pass the parameter by Ref or return a value.

However it is possible to call a function or sub with the array declaration inline, as it were.

MyFunction(New Object() {Object1, Object2, Object3})


Another method that I prefer is to use a ParamArray as the parameter. This would give the following.

Public Sub MyMethod(ByVal ParamArray args() As Object)
   ' Do Stuff
End Sub

...

MyMethod(Object1, Object2, Object3)


Using this style you can pass the elements of the array as if they were parameters, and it still acts like an array.



If you have knowledge, let others light their candles at it.
Margaret Fuller (1810 - 1850)
GeneralAsynchronous web service calls with timeouts Pin
Dobbin.NET15-Dec-04 21:04
Dobbin.NET15-Dec-04 21:04 
GeneralRe: Asynchronous web service calls with timeouts Pin
The Man from U.N.C.L.E.16-Dec-04 7:13
The Man from U.N.C.L.E.16-Dec-04 7:13 
GeneralRe: Asynchronous web service calls with timeouts Pin
Dobbin.NET16-Dec-04 20:23
Dobbin.NET16-Dec-04 20:23 
Generalxml file Pin
Makniteasy15-Dec-04 20:11
Makniteasy15-Dec-04 20:11 
GeneralRe: xml file Pin
Tom John15-Dec-04 22:17
Tom John15-Dec-04 22:17 
GeneralInternet Connection Wizard through VB.NET Pin
Member 142664115-Dec-04 19:48
Member 142664115-Dec-04 19:48 
GeneralNeed sample code for developing ftp client using Infragistics controls Pin
Member 159330515-Dec-04 19:02
Member 159330515-Dec-04 19:02 
GeneralRe: Need sample code for developing ftp client using Infragistics controls Pin
Dave Kreskowiak16-Dec-04 3:20
mveDave Kreskowiak16-Dec-04 3:20 
GeneralAbout Windows media player Pin
santosh jaiswal 200415-Dec-04 18:16
santosh jaiswal 200415-Dec-04 18:16 
GeneralRe: About Windows media player Pin
Dave Kreskowiak16-Dec-04 3:14
mveDave Kreskowiak16-Dec-04 3:14 
GeneralApplication Crash at Err Raise when Type Mismatch occured Pin
shinay15-Dec-04 12:33
shinay15-Dec-04 12:33 
GeneralRe: Application Crash at Err Raise when Type Mismatch occured Pin
Tom John16-Dec-04 1:51
Tom John16-Dec-04 1:51 
GeneralRe: Application Crash at Err Raise when Type Mismatch occured Pin
Dave Kreskowiak16-Dec-04 3:00
mveDave Kreskowiak16-Dec-04 3:00 
GeneralPopupMenu BMPs... Pin
TAlvord15-Dec-04 10:47
TAlvord15-Dec-04 10:47 
GeneralRe: PopupMenu BMPs... Pin
Tom John15-Dec-04 22:40
Tom John15-Dec-04 22:40 
GeneralSwitching beteween forms in vb.net Pin
Ryan Coleman15-Dec-04 10:34
Ryan Coleman15-Dec-04 10:34 
GeneralRe: Switching beteween forms in vb.net Pin
Mekong River15-Dec-04 11:10
Mekong River15-Dec-04 11:10 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.