CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: array to sub

  1. #1
    Join Date
    May 2001
    Location
    israel
    Posts
    4

    array to sub

    Hi,
    i wonder how can i use array as a value to be sent to sub
    like:
    public sub (array)
    ...
    end sub

    i need the syntax as well.
    TIA


  2. #2
    Join Date
    Apr 2000
    Posts
    737

    Re: array to sub

    say you want to sent array of string

    publib sub test(s() as string)
    ..... code
    end sub

    call the sub, like this

    dim s() as string
    redim s(10) 'set to 11 elements

    test(s)

    HTH

    cksiow
    http://vblib.virtualave.net - share our codes


  3. #3
    Join Date
    May 2001
    Location
    israel
    Posts
    4

    Re: array to sub

    Thanx !!!


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

Featured