Print Page | Close Window

Getting selected dates from datepicker? (delphi)

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=9811
Printed Date: 13 July 2025 at 2:30am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Getting selected dates from datepicker? (delphi)
Posted By: Mark19960
Subject: Getting selected dates from datepicker? (delphi)
Date Posted: 06 March 2008 at 11:21am
I am dabbling with Delphi 7 and trying to get a selected range from the datepicker.

What I have done is declared a variable of type TDateTime and I am now trying to assign the 'start' of a selection as such:

date := datepicker.Selection.Blocks[0].DateBegin;

My understanding of this and Delphi are at best, beginner.
I am certain I am doing this wrong... but I don't know the correct method.

As soon as I try to manipulate 'date' it throws a fit.

I also looked at datepicker.Selection.BlocksCount and moved it to an integer and as soon as I try to do anything with that integer it again, throws a fit.

So, is there something wrong with the installation or am I just doing this wrong?
I assumed at least pulling BlocksCount would show me something.




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