Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Calendar
  New Posts New Posts RSS Feed - Active.GetSelection Problem
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Active.GetSelection Problem

 Post Reply Post Reply
Author
Message
fmenditto View Drop Down
Newbie
Newbie


Joined: 21 October 2006
Location: Italy
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote fmenditto Quote  Post ReplyReply Direct Link To This Post Topic: Active.GetSelection Problem
    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
Back to Top
sserge View Drop Down
Moderator Group
Moderator Group


Joined: 01 December 2004
Status: Offline
Points: 1297
Post Options Post Options   Thanks (0) Thanks(0)   Quote sserge Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.109 seconds.