Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Week select in calendar

Status
Not open for further replies.

barnarp

Programmer
May 7, 2002
16
ZA
Hi,

I need a calendar component where the user will be able to select a whole week instead of just one day.

Anyone know of such a component ot function?
 
Have you tried using the Google search engine? It can be found at
It's wonderful. I entered
Delphi calendar select week
and the first hit gave details of a free calendar component which enables week selection.

Andrew
Hampshire, UK
 
I did try that already. The code does not work for Delphi 7, only 6.
 
well if you're going to code it yourself, look for Zeller's congruence. Implement that and you should get the code to find the day of the week for a given day. Adjust the number you get to the nearest Sunday/Monday and you got the first day of the week.

Of course if you want it as a component, extend some kind of grid data type to display calendar weeks.
 
Well why didn't you say that it had to be Delphi 6 and that you'd looked on google?

The second hit on google gives a calendar component that provides week selection and claims to work with Delphi 6.

Andrew
Hampshire, UK
 
No, I need one for Delphi 7.

I have the second one, the component from TMS Software, but it's more of a planner (outlook type format) than a calendar.
 
Any component that works in Delphi 6 will almost certainly work in Delphi 7, I'd be very suprised if the first component works 'only' in Delphi 6.
If you are loking for custom components it's always worth starting with Torry's Delphi pages ( this website has so many components it's almost silly, and many of them are free and come with source included. The calendar components can be found at
Steve
 
Thanks, but i already looked at torry's and could not find anything.

When I try compiling the designtime files for that component in Delphi 7, I get the following error message: Bad Package unit format.
 
I did a quick Google search for your error message and found the following on
Question: I get a compiler message ‘Bad package unit format’
Answer: You have a core package that is shared by two applications. One of the applications has a conditional define, like DEBUG set. You hit build all for one application, then try to compile the other without building all. The offending unit will cause the compile to fail.

That may be of some help

Steve
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top