SelectSatrtTime/EndTime |
Post Reply |
Author | |
moe188
Senior Member Joined: 27 March 2006 Status: Offline Points: 220 |
Post Options
Thanks(0)
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
|
|
jcollier
Senior Member Joined: 15 February 2006 Status: Offline Points: 250 |
Post Options
Thanks(0)
|
Try this:
CalendarControl.DayView.GetSelection CDate(txtStartTime), CDate(txtEndTime), False |
|
moe188
Senior Member Joined: 27 March 2006 Status: Offline Points: 220 |
Post Options
Thanks(0)
|
same error message, but thank you anyway |
|
sserge
Moderator Group Joined: 01 December 2004 Status: Offline Points: 1297 |
Post Options
Thanks(0)
|
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:
-- 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 |