Re: [lazarus] Problem with the Calendar Component

2006-04-11 Thread Patrick Chevalley
Maybe this is more what you want:Calendar1.DateTime:=Calendar1.DateTime+1;


Re: [lazarus] Problem with the Calendar Component

2006-04-11 Thread Mattias Gaertner
On Tue, 11 Apr 2006 23:45:16 +0200
Marco Meile <[EMAIL PROTECTED]> wrote:

> A.J. Venter wrote:
> 
> >On Tuesday 11 April 2006 23:25, Marco Meile wrote:
> >  
> >
> >>Hi List, Hi everyone :)
> >>
> >>
> >>I have a little problem with the Calendar Component of lazarus, and the
> >>DateTime Formats.
> >>
> >>
> >>on delphi i can count the days up with the following statement:
> >>
> >>calendar1.date := Calendar1.date +1;

If you mean TCalendarDialog:
  calendar1.date := Calendar1.date +1;
should work.


Mattias

_
 To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Problem with the Calendar Component

2006-04-11 Thread Marco Meile
A.J. Venter wrote:

>On Tuesday 11 April 2006 23:25, Marco Meile wrote:
>  
>
>>Hi List, Hi everyone :)
>>
>>
>>I have a little problem with the Calendar Component of lazarus, and the
>>DateTime Formats.
>>
>>
>>on delphi i can count the days up with the following statement:
>>
>>calendar1.date := Calendar1.date +1;
>>
>>
>>
>Calendar1.Date := IntToStr(StrToInt(Calendar1.Date)+1);
>
>  
>

ehm, is this a joke?

if is true then is a bad joke. sorry...

_
 To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Problem with the Calendar Component

2006-04-11 Thread A.J. Venter
On Tuesday 11 April 2006 23:25, Marco Meile wrote:
> Hi List, Hi everyone :)
>
>
> I have a little problem with the Calendar Component of lazarus, and the
> DateTime Formats.
>
>
> on delphi i can count the days up with the following statement:
>
> calendar1.date := Calendar1.date +1;
>
Calendar1.Date := IntToStr(StrToInt(Calendar1.Date)+1);

-- 
"there's nothing as inspirational for a hacker as a cat obscuring a bug 
by sitting in front of the monitor" - Boudewijn Rempt
A.J. Venter
Chief Software Architect
OpenLab International
www.getopenlab.com
www.silentcoder.co.za
+27 82 726 5103

_
 To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


[lazarus] Problem with the Calendar Component

2006-04-11 Thread Marco Meile
Hi List, Hi everyone :)


I have a little problem with the Calendar Component of lazarus, and the
DateTime Formats.


on delphi i can count the days up with the following statement:

calendar1.date := Calendar1.date +1;

on Lazarus does this not work cause an "AnsiString" is not Compatible to
Shortint.

if i use the inttostr() function,  the result of Calendar1.date +
inttostr(1); is the year 1961.

Iam Really Confused.

anyone can help me for a solution?


Thanks to all


Greets Marco

_
 To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives