Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Calendar
  New Posts New Posts RSS Feed - Getting selected dates from datepicker? (delphi)
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Getting selected dates from datepicker? (delphi)

 Post Reply Post Reply
Author
Message
Mark19960 View Drop Down
Groupie
Groupie


Joined: 17 October 2007
Location: United States
Status: Offline
Points: 11
Post Options Post Options   Thanks (0) Thanks(0)   Quote Mark19960 Quote  Post ReplyReply Direct Link To This Post Topic: Getting selected dates from datepicker? (delphi)
    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.

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.234 seconds.