FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour cicle of date
Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
cicle of date
Posted: Mon Sep 02, 2019 07:40 PM

I wish make a cicle type
ddateInit:="31.08.2013"
dDatefinal:="31.08.2019"

DO while ctod(ddateInit)== ctod(dDatefinal)

 ...make some procedures


               ddateInit+=3  //add 3 days

EndDo

why it is bad ?

Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)

I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
Posts: 8515
Joined: Tue Dec 20, 2005 07:36 PM
Re: cicle of date
Posted: Mon Sep 02, 2019 07:50 PM
Code (fw): Select all Collapse
   ddateInit := ddateInit + 3
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
Posts: 4043
Joined: Wed Dec 19, 2007 06:40 PM
Re: cicle of date
Posted: Mon Sep 02, 2019 08:04 PM

Silvio,

a test with 50 days

SET DATE GERMAN
ddateInit := ctod("31.08.2013")
dDatefinal := ctod("31.08.2019")

DO while dDatefinal >= ddateInit
ddateInit+=50 //add 3 days
MsgAlert( ddateInit )
EndDo

regards
Uwe :D

Since 1995 ( the first release of FW 1.9 )

i work with FW.

If you have any questions about special functions, maybe i can help.
Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
Re: cicle of date
Posted: Mon Sep 02, 2019 09:00 PM

THE PROBLEM IS
skip records by putting in empty record archives

Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)

I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
Re: cicle of date
Posted: Mon Sep 02, 2019 10:04 PM
but now pehaps I found the error
I have a big big dbf with many numbers




and I'm losing myself
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)

I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
Re: cicle of date
Posted: Tue Sep 03, 2019 02:51 PM

resolved

Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)

I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com

Continue the discussion