Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
PropBag Problem?
Message
General information
Forum:
Visual Basic
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00757361
Message ID:
00757363
Views:
9
Why are you using Class_ ?????

It should be UserControl_ ...


>What's wrong here? The property shows up as Zero in the property
>sheet, yet the default value is set in the constant.
>
>
>Private Const conDefaultRate = 6.125
>Private mInterestRate As Single
>'
>
>Public Property Let InterestRate(newRate As Single)
>   mInterestRate = newRate
>   PropertyChanged "InterestRate"
>End Property
>
>Public Property Get InterestRate() As Single
>   InterestRate = mInterestRate
>End Property
>
>Private Sub Class_WriteProperties(PropBag As PropertyBag)
>   PropBag.WriteProperty "InterestRate", mInterestRate, conDefaultRate
>End Sub
>
>Private Sub Class_ReadProperties(PropBag As PropertyBag)
>   mInterestRate = PropBag.ReadProperty("InterestRate", conDefaultRate)
>End Sub
>
>Private Sub Class_InitProperties()
>   mInterestRate = conDefaultRate
>End Sub
>
>
Éric Moreau, MCPD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Moer inc.
http://www.emoreau.com
Previous
Reply
Map
View

Click here to load this message in the networking platform