array back to function?

Discussion in 'AutoCAD' started by Lunt, Jul 9, 2004.

  1. Lunt

    Lunt Guest

    I have a function where I need to return 2 values. is it possible to pass an array of values (angle, pickpoint) back to the calling function? Or is there another way to get 2 values out of a function?

    thank you
     
    Lunt, Jul 9, 2004
    #1
  2. Lunt

    TomD Guest

    Function ReturnAnArray() as Variant
    Dim vRet(1) as Variant
    vRet(0) = "Value 1"
    vRet(1) = "Value 2"
    ReturnAnArray = vRet
    End Function

    .....you mean something like that?


    an array of values (angle, pickpoint) back to the calling function? Or is
    there another way to get 2 values out of a function?
     
    TomD, Jul 10, 2004
    #2
  3. Lunt

    Lunt Guest

    exactly...I figured it out last night..thank you
     
    Lunt, Jul 10, 2004
    #3
  4. Lunt

    TomD Guest

    You're welcome...........it's nice to be on the giving end in this group for
    a change. ;)

    .....FWIW: That confused me at first, too.
     
    TomD, Jul 12, 2004
    #4
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.