Problem to create event when i m in week view |
Post Reply |
Author | |
Pasm
Newbie Joined: 03 April 2009 Location: Belgium Status: Offline Points: 1 |
Post Options
Thanks(0)
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. |
|
mdoubson
Senior Member Joined: 17 November 2008 Status: Offline Points: 1705 |
Post Options
Thanks(0)
|
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
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |