Results 1 to 3 of 3

Thread: passing arrays to user controls /class modules

  1. #1

    Thread Starter
    Member
    Join Date
    Apr 2001
    Location
    Emden, Germany
    Posts
    63

    Unhappy

    Hi there!

    I was just writing a user control, which does logarithmic plots. so i was trying to pass a dataarray to the control via

    "property let Dataset(dataarray()as double)"

    passing dataarrays within a module or form is no problem, sub's accept "sub blahblah (dataarray() as double)".
    well, after some thinking it seems logical that this won't work that easy. (BUT, it does not make sense that Visual basic is crushing down without even saying goodbye, when you try it!)
    so the question remains, how to do it? can anyone give me a hint? (my VB book doesn't tell)

  2. #2
    New Member
    Join Date
    Mar 2001
    Posts
    5
    try use ByRef dataarray() as double

    TO PASS ARRAY YOU HAVE TO USE ByRef

  3. #3

    Thread Starter
    Member
    Join Date
    Apr 2001
    Location
    Emden, Germany
    Posts
    63

    Unhappy no change

    Ok! So I tried ByRef, but it does not make a difference, VB still crashes. And actually, it is not necessary to use ByRef usually, because it is the default for "property let" and all other sub's (if MSDN is right!).

    ?

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