Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Passing a Arrays into Functions 1

Status
Not open for further replies.

VLG711

Technical User
May 30, 2001
95
US
How Do I pass a Array into a Custom Function?
I have an Array Defined..

Dim File_List1(4) As String

I populate it and call the function....

ReturnVal = Send_Email_Upload(File_List(4), File_Count, date_time)

My Function started this way...

Public Function Send_Email_Upload(File_List As String, File_Count As Integer, date_time As Double)


File_list is now obviously contains one value. I cant figure out how to define the variable in the function to pass the array. If I put both variables in the watch I can still see the valuse in the first variable and not the second.

Thanks in advance,
VLG711
 

Hi,
Code:
Public Function Send_Email_Upload(File_List() As String, File_Count As Integer, date_time As Double)


Skip,
[sub]
[glasses] [red]Be Advised![/red]
The band of elderly oriental musicians, known as Ground Cover, is, in reality...
Asian Jasmine![tongue][/sub]
 
That did the trick - Thanks Skip!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top