Click here to Skip to main content
16,005,734 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Creating an new form with race results Pin
Dave Kreskowiak16-Dec-04 3:37
mveDave Kreskowiak16-Dec-04 3:37 
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 
No it's not. You must Dim the variable first, otherwise VB will not know how to pass the variable to the function. Also, If your going to return values in the variable you pass in the function parameters, you must pass it ByRef, not ByVal.
Dim inputArray As String()
MyFunction(inputArray)
.
.
.
Public Sub MyFunction(ByRef ia As String())
    // some code
    ReDim ia(someNumber)
    // some code
End Sub

Or, you could do it as a return value from a Function:
Dim inputArray As String()
inputArray = MyFunction(someValue)
.
.
.
Public Function MyFunction(ByVal value) As String()
    // some code
    Dim ia As String()
    // some more code
    Return ia
End Sub



RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

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 
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 

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.