Print Page | Close Window

Active.GetSelection Problem

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=5369
Printed Date: 10 May 2024 at 8:28am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Active.GetSelection Problem
Posted By: fmenditto
Subject: Active.GetSelection Problem
Date Posted: 27 October 2006 at 6:04am
Hy, I have a big problem with GetSelection function. It works only if you explicit declare the three variable :
 
dim dtbegin as date, dim dtend as date, dim bnallday as boolean
CalendarControl.ActiveView.GetSelection dtbegin, dtend, bnallday
 
instead if you use variant variable
 
dim dtbegin, dtend, bnallday
CalendarControl.ActiveView.GetSelection dtbegin, dtend, bnallday
 
you receive the error 13 for type non correct.
 
So you can't use the function in Vbscript because all the variable in VbScript are variant and is not possible to explicit declare ...
 
Are there a work around for this ?
 
Thanks very much



Replies:
Posted By: sserge
Date Posted: 27 October 2006 at 4:28pm
Hi,

To avoid such problem we've added a property CalendarView. Selection. Use it instead.

GetSelection will be a hidden member from the next version...

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