Results 1 to 2 of 2

Thread: sending array to a function

  1. #1

    Thread Starter
    New Member
    Join Date
    Feb 2000
    Location
    haifa,israel
    Posts
    12

    Post

    can I send an array to a function?

  2. #2
    Serge's Avatar
    Join Date
    Feb 1999
    Location
    Scottsdale, Arizona, USA
    Posts
    2,744

    Post

    Sure.

    Code:
    Public Function MyFunction(pArr() as Integer) As Boolean
        Dim i As Integer
    
        For i = 0 To UBound(pArr)
            'Do your stuff here
        Next
    End If


    ------------------

    Serge

    Programmer Analyst
    [email protected]
    [email protected]
    ICQ#: 51055819


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width