Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.clipper.visual-objects > #12880
| Path | csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail |
|---|---|
| From | "Urs Eggmann" <Urs.Eggmann@shinternet.ch> |
| Newsgroups | comp.lang.clipper.visual-objects |
| Subject | Re: calendar controll |
| Date | Sun, 1 Mar 2020 20:41:18 +0100 |
| Lines | 54 |
| Message-ID | <hc2hitFb1ehU1@mid.individual.net> (permalink) |
| References | <49aaabb2-544a-4709-8705-94784696e717@googlegroups.com> <eeb805e9-57f9-4963-9d7f-9e6998ffe399@googlegroups.com> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; format=flowed; charset="UTF-8"; reply-type=original |
| Content-Transfer-Encoding | 8bit |
| X-Trace | individual.net iNaZ6ger0CqLmIiy5MRqCgfPtW8zfi/GxlmBzbiZyW7d0tB43j |
| Cancel-Lock | sha1:bUXMaYcLU3AaHAuCflaQk4IppBg= |
| X-Priority | 3 |
| X-MSMail-Priority | Normal |
| X-Newsreader | Microsoft Outlook Express 6.00.2900.5931 |
| X-MimeOLE | Produced By Microsoft MimeOLE V6.00.2900.6157 |
| X-EsetId | 37303A29266DE36F63746A |
| X-EsetScannerBuild | 44619 |
| Xref | csiph.com comp.lang.clipper.visual-objects:12880 |
Show key headers only | View raw
Hi Aurora, I have killed the Bug! In module ccCalendar, line 3 the dTarget is formed with the function ConDate(<dwYear>, <dwMonth>, <dwDay>) ---> dDate The third parameter is the number of the day in the protect variable dActualDate and that is the February 29th! So, the return value is a NULL_DATE and that causes the error. The program tries to go to the februarry 29 of a non leap year... Obviously nobody has tested ever the program exactly at a switching day of a leap year. As a workaround I set the third param to 1, a day you have in every month. BUT, if you have other dependencies of the dActualDate in your program it is essential to check the effects very carfully. Modified Method: ******************************************** METHOD MoveYear(n) CLASS ccCalendar // Adapted from VO-Original example LOCAL dTarget AS DATE * dTarget := ConDate(Year(SELF:dActualDate) + n ,Month(SELF:dActualDate),Day(SELF:dActualDate)) dTarget := ConDate(Year(SELF:dActualDate) + n ,Month(SELF:dActualDate), 1 ) IF IsMethod(SELF , #Actualize) SELF:Actualize(dTarget) // Nachführen des Calendar-Controls ENDIF IF IsMethod(SELF:Owner , #Feiertage) SELF:Owner:Feiertage() // Aktualisieren in der Anzeige des Owners ENDIF RETURN NIL *********************************** HTH and regards Urs PS: For testing I had to switch my PC temporarily to the february 29 (bg) <aurorabaccio@gmail.com> schrieb im Newsbeitrag news:eeb805e9-57f9-4963-9d7f-9e6998ffe399@googlegroups.com... > Il giorno domenica 16 febbraio 2020 11:09:46 UTC+1, aurora...@gmail.com ha > scritto: >> sorry my english >> is there any way to have bigger fonts in calendarcontroll? >> Thanks >> aurora baccio > > > good afternoon, > I point out that moving a year forward (from 2020 to 2021) the error > NUMERIC OWERFLOW appears line 12 DRAWDAYS > thank you > aurora baccio
Back to comp.lang.clipper.visual-objects | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
calendar controll aurorabaccio@gmail.com - 2020-02-16 02:09 -0800
Re: calendar controll "Urs Eggmann" <Urs.Eggmann@shinternet.ch> - 2020-02-16 21:30 +0100
Re: calendar controll aurorabaccio@gmail.com - 2020-02-17 07:27 -0800
Re: calendar controll "Urs Eggmann" <Urs.Eggmann@shinternet.ch> - 2020-02-17 23:31 +0100
Re: calendar controll aurorabaccio@gmail.com - 2020-02-18 06:04 -0800
Re: calendar controll "Urs Eggmann" <Urs.Eggmann@shinternet.ch> - 2020-02-18 16:34 +0100
Re: calendar controll aurorabaccio@gmail.com - 2020-02-18 08:19 -0800
Re: calendar controll "Urs Eggmann" <Urs.Eggmann@shinternet.ch> - 2020-02-19 21:28 +0100
Re: calendar controll aurorabaccio@gmail.com - 2020-02-19 22:46 -0800
Re: calendar controll aurorabaccio@gmail.com - 2020-02-19 23:02 -0800
Re: calendar controll aurorabaccio@gmail.com - 2020-02-20 04:59 -0800
Re: calendar controll "Urs Eggmann" <Urs.Eggmann@shinternet.ch> - 2020-02-22 22:07 +0100
Re: calendar controll aurorabaccio@gmail.com - 2020-02-20 05:30 -0800
Re: calendar controll "Urs Eggmann" <Urs.Eggmann@shinternet.ch> - 2020-02-22 22:06 +0100
Re: calendar controll aurorabaccio@gmail.com - 2020-02-23 05:06 -0800
Re: calendar controll "Urs Eggmann" <Urs.Eggmann@shinternet.ch> - 2020-02-24 14:35 +0100
Re: calendar controll aurorabaccio@gmail.com - 2020-02-27 05:12 -0800
Re: calendar controll "Urs Eggmann" <Urs.Eggmann@shinternet.ch> - 2020-02-27 20:46 +0100
Re: calendar controll aurorabaccio@gmail.com - 2020-02-29 06:54 -0800
Re: calendar controll "Urs Eggmann" <Urs.Eggmann@shinternet.ch> - 2020-02-29 16:45 +0100
Re: calendar controll "Urs Eggmann" <Urs.Eggmann@shinternet.ch> - 2020-03-01 20:41 +0100
Re: calendar controll aurorabaccio@gmail.com - 2020-03-02 05:50 -0800
Re: calendar controll "Urs Eggmann" <Urs.Eggmann@shinternet.ch> - 2020-03-02 19:19 +0100
Re: calendar controll aurorabaccio@gmail.com - 2020-03-03 05:42 -0800
Re: calendar controll aurorabaccio@gmail.com - 2020-03-03 05:52 -0800
Re: calendar controll "Urs Eggmann" <Urs.Eggmann@shinternet.ch> - 2020-03-03 23:20 +0100
Re: calendar controll aurorabaccio@gmail.com - 2020-03-03 07:33 -0800
Re: calendar controll "Urs Eggmann" <Urs.Eggmann@shinternet.ch> - 2020-03-03 23:01 +0100
Re: calendar controll aurorabaccio@gmail.com - 2020-03-04 07:22 -0800
Re: calendar controll aurorabaccio@gmail.com - 2020-03-06 05:32 -0800
Re: calendar controll aurorabaccio@gmail.com - 2020-03-06 05:48 -0800
Re: calendar controll "Urs Eggmann" <Urs.Eggmann@shinternet.ch> - 2020-03-06 22:14 +0100
Re: calendar controll aurorabaccio@gmail.com - 2020-03-06 05:54 -0800
Re: calendar controll aurorabaccio@gmail.com - 2020-03-06 23:44 -0800
Re: calendar controll aurorabaccio@gmail.com - 2020-03-07 06:04 -0800
Re: calendar controll "Urs Eggmann" <Urs.Eggmann@shinternet.ch> - 2020-03-07 15:54 +0100
Re: calendar controll aurorabaccio@gmail.com - 2020-03-07 07:37 -0800
csiph-web