Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

Vb Using Arrays in Fonctions

Posted on 2003-02-19
1
Medium Priority
?
127 Views
Last Modified: 2010-05-01
Hi experts
i got a function that as an array : sums(y)
Public Function test()


now i need to use that array in my other functions
how do i call it in

Public Function Separer()

thx
Itall

0
Comment
Question by:Italbro4
1 Comment
 
LVL 18

Accepted Solution

by:
bobbit31 earned 120 total points
ID: 7984469
Private Sub Command1_Click()
separer test()
End Sub

Public Function test() As String()
   Dim arrTest(1 To 5) As String
   Dim i As Integer

   For i = 1 To 5
      arrTest(i) = "Test" & i
   Next
   
   test = arrTest
End Function


Public Function separer(arrBlah() As String)
    Dim i As Integer
   
    For i = 1 To UBound(arrBlah)
        MsgBox arrBlah(i)
    Next
End Function
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Suggested Courses
Course of the Month11 days, 17 hours left to enroll

564 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question