![]() |
Currently selected date |
Post Reply ![]() |
Author | |
TracyP ![]() Groupie ![]() Joined: 16 February 2006 Status: Offline Points: 22 |
![]() ![]() ![]() ![]() ![]() 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: 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. |
|
![]() |
|
sserge ![]() Moderator Group ![]() Joined: 01 December 2004 Status: Offline Points: 1297 |
![]() ![]() ![]() ![]() ![]() |
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 |
|
![]() |
|
TracyP ![]() Groupie ![]() Joined: 16 February 2006 Status: Offline Points: 22 |
![]() ![]() ![]() ![]() ![]() |
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 |
|
![]() |
|
sserge ![]() Moderator Group ![]() Joined: 01 December 2004 Status: Offline Points: 1297 |
![]() ![]() ![]() ![]() ![]() |
Thank you, nice to see that this is not an issue
![]() -- WBR, Serge |
|
![]() |
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 |