Print Page | Close Window

Problem to create event when i m in week view

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=13907
Printed Date: 16 July 2025 at 2:14pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Problem to create event when i m in week view
Posted By: Pasm
Subject: Problem to create event when i m in week view
Date Posted: 03 April 2009 at 2:09am
Hello all,

I have a little problem with the OCX version 13, when i am in Week view and i want to create a new appointment with a doubleclick on a day in the middle of the week, a false date is return, in fact the first day of the week is return each time

I use this code :

dDatum is Date = gcDatePicker:DateGetBegin()
hTbegin is Time = gclAgenda:WDTime(AX_Calendar>>ActiveView>>Selection>>Begin)
hTend is Time = gclAgenda:WDTime(AX_Calendar>>ActiveView>>Selection>>End)

Procedure DateGetBegin()
dOffset is Date = "18991230"
pautBlock is object Automation dynamic = :m_pautXDatePicker>>Selection>>Blocks[0]
RETURN = :WDDate(pautBlock>>DateBegin)



Because i dont have find the Methods/Property/Events in the Calendar Control to return the date in creation mode, then i must use the DatePicker control with the property DateBegin.

This code work good when i'm in Day view but not when i m week view or Month view.

Whre i m wrong ? How tu use a return date value directly from the calendar Control when i'm in creation mode of a appointment ?

Thanks in advance.





Replies:
Posted By: mdoubson
Date Posted: 08 April 2009 at 4:40pm
Can not confirm - it works in MFC and VB app - tested right now. What do you see in your Event Editor? Should be Start and End picker with date of click cell

-------------
Mark Doubson, Ph.D.



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