Print Page | Close Window

How to detect the events fired

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=5190
Printed Date: 21 November 2024 at 9:06am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: How to detect the events fired
Posted By: aboldoc
Subject: How to detect the events fired
Date Posted: 02 October 2006 at 2:18pm
Hi, Do you know how to implement this code in delphi? or windev(pcsoft)?

What I want to do is to detect the event that is fired.

OnReminders

------- from the sample vb code provided By Codejock

    Dim pRemI As CalendarReminder
    Dim pEventI As CalendarEvent
      
    For Each pRemI In frmMain.CalendarControl.Reminders
        Set pEventI = pRemI.Event
        .
        .
    Next

------------

Thank's




Replies:
Posted By: sserge
Date Posted: 03 October 2006 at 10:37am
Hi,

Which data provider do you use? I suppose that Custom.
I've heard once about such a problem with PowerBuilder environment.

Reminder object does not contain an event object, it stores EventID.
 
pRemI.Event calls DataProvider.GetEvent(EventID).
GetEvent fires DoReadEvent notification.
 
In DoReadEvent implementation you'll have to create an event object, fill properties and return it.
 
But the problem is that PowerBilder does not return parameters other than VARIANT type. I suppose you have the same problem.
 
To solve this problem a few additional notifications with VARIANT parameters were added:
    DoReadEventV, DoReadRPatternV
 
This is available by request as a patch for version 10.3.1.
 
PS: And also please check that parameters in you functions declarations which must be ByRef is actually ByRef.

--
WBR,
Serge



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