Author | Topic: Codejock CustomProperties | |
---|---|---|
chris andries | Codejock CustomProperties on Mon, 02 Mar 2009 21:17:51 +0100 Hi, I'm trying to implement the Codejock Calendar ActiveX. I don't succeed to do the following. This is the Visual Basic Syntax. [CustomProperties Sample (Visual Basic)] This sample illustrates how to get and set custom properties for an event. Dim NewEvent As CalendarEvent Set NewEvent = CalendarControl.DataProvider.CreateEvent 'Add some custom properties NewEvent.CustomProperties.Property("String Value") = "Hello" NewEvent.CustomProperties.Property("Numeric") = 500 NewEvent.CustomProperties.Property("Boolen Value") = False 'Retrieve the custom property Dim nInt As Integer nInt = NewEvent.CustomProperties.Property "Numeric" I tried the following : oProperties := oEvent:CustomProperties -> This gives me an object. I tried : oProperties:property("String Value") := "TEST" -> This will not compile. I also tried : oProperties:setproperty("String Value","TEST") -> This gives a runtime error. How should I do this? Thanks for any help, Regard, Chris Andries |