Print Page | Close Window

Data1 property

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Calendar
Forum Description: Topics Related to Codejock Calendar
URL: http://forum.codejock.com/forum_posts.asp?TID=13598
Printed Date: 07 October 2024 at 1:21am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Data1 property
Posted By: skiman
Subject: Data1 property
Date Posted: 06 March 2009 at 10:33am
Hi,
 
I'm trying to use the data1 property of the calendar object. It seems as this property is unknown?
 
According to the help file there are 4 (data1...4) properties which can be used to put user defined data in. I want to use this to save an identifier for the calendar.
 
In Xbase++ this should be :
oCalendar:data1 := "xxx", but this gives me an error, object has no member with this name.
 
If I check the docs, it is the same level as for example viewtype.
oCalendar:viewtype := xxx is working.
 
I also tried the options object, but this also has no member with the name data1.
 
Suggestions?
 
Chris.


-------------
ABO Service



Replies:
Posted By: Mr.Den
Date Posted: 06 March 2009 at 11:13am

Here is the CustomProperties VB example I think you are referring to from the help file:

 
    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"
 
Any help?
 


-------------
Product: Xtreme SuitePro (ActiveX) version 16.3.1

Platform: Windows 7 Professional (64bit) - SP 1

Language: Visual Basic 6.0 SP 6


Posted By: skiman
Date Posted: 06 March 2009 at 12:09pm
Hi,
 
No, I found it in the help file.
- Codejock Active X Controls
 - Xtreme Calendar
  - Properties
   - Data1 property
   - Data2 property...
 
I already use the custom properties for the events, but I want to save a specific ID to the calendar.
 
Regards,
Chris.
 


-------------
ABO Service



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net