Print Page | Close Window

SelectSatrtTime/EndTime

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=4806
Printed Date: 30 June 2024 at 11:51am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: SelectSatrtTime/EndTime
Posted By: moe188
Subject: SelectSatrtTime/EndTime
Date Posted: 15 August 2006 at 3:34pm
Hi,
I am using 2 text box (TxtStartTime and TxtEndTime), and I want to select to display the calendar control and set focus on the selection (TxtStartTme and TxtEndTime).
Code:
CalendarControl.Dayview.GetSelection TxtStartTime,TxtEndTime,False
 
I get this error message:
run time error 13, or Type mismatch
 
Thank you for your help
 



Replies:
Posted By: jcollier
Date Posted: 16 August 2006 at 8:54am
Try this:

CalendarControl.DayView.GetSelection CDate(txtStartTime), CDate(txtEndTime), False


Posted By: moe188
Date Posted: 16 August 2006 at 12:11pm

same error message, but thank you anyway



Posted By: sserge
Date Posted: 24 August 2006 at 3:56am
Hi,

Actually the problem is because GetSelection returns all 3 values, and the last one shows whether is it "all day" area selection. And you're trying to return a value to a constant (False).

So far, a solutioon would be to call this method having all 3 variables:

Dim dtBegin As Date, dtEnd As Date, bAllDay As Boolean
CalendarControl.DayView.GetSelection dtBegin, dtEnd, bAllDay


--
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