Results 1 to 19 of 19

Thread: Delegate pointing at a property[Resolved]

Threaded View

  1. #1

    Thread Starter
    Lively Member jberman's Avatar
    Join Date
    Nov 2004
    Location
    Hollywood, FL
    Posts
    103

    Resolved Delegate pointing at a property[Resolved]

    Just a quick Q. How do I setup a delegate to point at a property. I am getting syntax errors when I try these methods:

    -expects sub or function, if either are put in it says property is not a valid identifier.
    VB Code:
    1. Public Delegate property delgGrabBalance() As Double

    -says the signature is incorrect.
    VB Code:
    1. Public Delegate Function delgGrabBalance() As Double

    This is the property:

    VB Code:
    1. Public Property Balance() As Double
    2.         Get
    3.             Return mBalance
    4.         End Get
    5.         Set(ByVal Value As Double)
    6.             mBalance = Value
    7.         End Set
    8.     End Property

    Thanks for any help!
    Last edited by jberman; Mar 28th, 2005 at 08:42 AM.

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