Results 1 to 3 of 3

Thread: Passing Classes

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Feb 2001
    Location
    Adelaide, Australia
    Posts
    24

    Question

    I'm relatively new to VB and am doing some class programming.

    I have a filerepresentation class and a bytechunk class.

    A method of the filerepresentation class returns a bytechunk class. The declaration in the function prototype allows this however, the upon making the function name = returned object of class bytechunk, it crashes with an unkown error:
    -2,147,211,505 (8004 270f)

    Is there a problem with returning objects from another object or some other reasoable explanation ?

  2. #2
    Member
    Join Date
    Feb 2001
    Location
    Greensboro, NC.
    Posts
    40
    Did you use a SET in front of the function name = returned object? SET Function=object

    If that is not the issue, you may want to post some of the code...

    Regards

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Feb 2001
    Location
    Adelaide, Australia
    Posts
    24
    Thanks, it did the trick

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