Results 1 to 4 of 4

Thread: Invalid use of Object :/

  1. #1

    Thread Starter
    Frenzied Member Jim Davis's Avatar
    Join Date
    Mar 2001
    Location
    Mars base one Username: Jim Davis Password: yCrm33
    Posts
    1,284

    Invalid use of Object :/

    Hello ppls,

    well.. it looks like ive some difficulties with private class module handling, im want to verify if a class not defined in my array (fletters) but when im try to check with "If Not FLetters(Z1) = Nothing Then" ive got the 'Invalid use of Object' error, and i cant figure out how can i verify this...

    so, heres the declaration
    Private FLetters() As LetterHandle

    in the form_load event:
    ReDim FLetters(0)

    and somewhere in the code ive increased the arrays index, and 'bind' the new class:

    ReDim Preserve FLetters(C)
    Set FLetters(C) = New LetterHandle

    ... some index of this array is stay 'Nothing'...

    i know my problem looks a little bit lame, but ive never tried to use this before..

    pls help
    jim.

  2. #2
    Not NoteMe SLH's Avatar
    Join Date
    Mar 2002
    Location
    192.168.0.1 Preferred Animal: Penguin Reason for errors: Line#38
    Posts
    3,051
    Use the function IsNull() to check, instead of if object = null/nothing
    Quotes:
    "I am getting better then you guys.." NoteMe, on his leet english skills.
    "And I am going to meat her again later on tonight." NoteMe
    "I think you should change your name to QuoteMe" Shaggy Hiker, regarding NoteMe
    "my sweet lord jesus. I've decided never to have breast implants" Tom Gibbons
    Have I helped you? Please Rate my posts.


  3. #3

    Thread Starter
    Frenzied Member Jim Davis's Avatar
    Join Date
    Mar 2001
    Location
    Mars base one Username: Jim Davis Password: yCrm33
    Posts
    1,284
    not works

    any other idea?

    jim.

  4. #4

    Thread Starter
    Frenzied Member Jim Davis's Avatar
    Join Date
    Mar 2001
    Location
    Mars base one Username: Jim Davis Password: yCrm33
    Posts
    1,284
    ive tried IsEmpty().. but ive got the sames like with IsNull()...

    the arrays index not empty, and not null, but its Nothing.. so how can i verify? *sniff*

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