Results 1 to 5 of 5

Thread: ??? Invalid use of property ? [resolved]

  1. #1

    Thread Starter
    Frenzied Member thegreatone's Avatar
    Join Date
    Aug 2003
    Location
    Oslo, Norway. Mhz:4800 x12
    Posts
    1,333

    Resolved ??? Invalid use of property ? [resolved]

    Ok, this really is strange, i cannot compile any code thta uses the .Filter attribute of the commonDialog control... thing is i used to be able too...

    VB Code:
    1. CD.Filter "*.Txt|Text Files"

    that code throws up the error... and i have tried

    VB Code:
    1. With CD
    2.           .Filter = "*.txt|Text Files"
    3. End With

    (and yes my control is called CD)

    Any Help ?
    Last edited by thegreatone; Mar 17th, 2005 at 12:53 PM.
    Zeegnahtuer?

  2. #2

  3. #3

    Thread Starter
    Frenzied Member thegreatone's Avatar
    Join Date
    Aug 2003
    Location
    Oslo, Norway. Mhz:4800 x12
    Posts
    1,333

    Re: ??? Invalid use of property ?

    Quote Originally Posted by RhinoBull
    Trye this instead:

    CD.Filter = "Text (*.txt)|*.txt"

    ok, that worked, thanks mate

    Tghing is i had a previously compiled version of it and it worked :-P
    maybe the addition of Option Explicit prompted it ?
    Zeegnahtuer?

  4. #4

  5. #5

    Thread Starter
    Frenzied Member thegreatone's Avatar
    Join Date
    Aug 2003
    Location
    Oslo, Norway. Mhz:4800 x12
    Posts
    1,333

    Re: ??? Invalid use of property ?

    Yey, i have a new friend :-P

    Thanks mate [resolved]
    Zeegnahtuer?

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