CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Feb 2000
    Posts
    1

    Invalid use of property

    I have a peice of code as shown below in Visual Basic 6.0 as below:

    Public gBCCI As BCCI

    Public Sub CreateObjects()

    Set gBCCI.DEMO = CreateObject("Remote0.gRemote")
    gBCCI.DEMO.Connect = "TYPE=HTTP.HTTPConnection;ADDR=http://127.0.0.1/TEST.ASP"

    End Sub

    When I try an compile it, I get the error "invalid use of property" (occurs on line 4 - gBCCI.DEMO.Connect..........). Could someone tell me what this means, and why it would occur?

    thanks,
    Graham McDaniel




  2. #2
    Join Date
    May 1999
    Posts
    3,332

    Re: Invalid use of property

    several possible reasons:
    - you are trying to assign to a read-only property
    - you need as "set" statement (probably not true in your case).


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

Featured