Currently selected date
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=3677
Printed Date: 21 November 2024 at 10:36pm Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com
Topic: Currently selected date
Posted By: TracyP
Subject: Currently selected date
Date Posted: 20 February 2006 at 9:54am
Due to the language I'm using, passing a Date variable to the ActiveView.GetSelection() returns an error.
See link for more details: http://support.microsoft.com/default.aspx?scid=kb%3Ben-us%3B177575 - PRB: ActiveX Controls Passing Variant* Back to VFP Cause Error
Is there another way to get the currently selected date. I've attempted
to use the DatePicker attached to the Calendar, however, it does not
correctly update when the calendar updates.
|
Replies:
Posted By: sserge
Date Posted: 22 February 2006 at 6:25am
Hi Tracy,
In the declaration of ActiveView.GetSelection(ByRef Date, ByRef Date, ByRef Boolean) there are no "ByRef Variant" parameters. Could you please clarify whether you're providing all 3 parameters of corresponding types?
-- WBR, Serge
|
Posted By: TracyP
Date Posted: 22 February 2006 at 8:37am
VFP does not have StrictTyping. However, I do set the variables accordingly.
ltStart = datetime() && function which returns a datetime value
ltEnd = datetime() && function which returns a datetime value
llAllDay = .T. && true
*-- The @ before the variables are informing VFP to pass by Reference
oleCalendar.ActiveView.GetSelection(@ltStart, @ltEnd, @llAllDay)
Today it works. Looking at the old code tests I have been doing, I
passed the llAllDay as .T. not a variable. This was apparently causing
my error.
I am very pleased with the functionality and ease of use this control has.
Thanks
Tracy
|
Posted By: sserge
Date Posted: 22 February 2006 at 9:35am
Thank you, nice to see that this is not an issue .
-- WBR, Serge
|
|