cicle of date

Post Reply
User avatar
Silvio.Falconi
Posts: 4956
Joined: Thu Oct 18, 2012 7:17 pm

cicle of date

Post by Silvio.Falconi »

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 ?
I use : FiveWin for Harbour August 2020 (Revision) - Harbour 3.2.0dev (r1712141320) - Bcc7.30 - xMate ver. 1.15.3 - PellesC
User avatar
karinha
Posts: 4882
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil

Re: cicle of date

Post by karinha »

Code: Select all

   ddateInit := ddateInit + 3 
 
João Santos - São Paulo - Brasil
User avatar
ukoenig
Posts: 3981
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany
Contact:

Re: cicle of date

Post by ukoenig »

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.
User avatar
Silvio.Falconi
Posts: 4956
Joined: Thu Oct 18, 2012 7:17 pm

Re: cicle of date

Post by Silvio.Falconi »

THE PROBLEM IS
skip records by putting in empty record archives
I use : FiveWin for Harbour August 2020 (Revision) - Harbour 3.2.0dev (r1712141320) - Bcc7.30 - xMate ver. 1.15.3 - PellesC
User avatar
Silvio.Falconi
Posts: 4956
Joined: Thu Oct 18, 2012 7:17 pm

Re: cicle of date

Post by Silvio.Falconi »

but now pehaps I found the error
I have a big big dbf with many numbers

Image


and I'm losing myself
I use : FiveWin for Harbour August 2020 (Revision) - Harbour 3.2.0dev (r1712141320) - Bcc7.30 - xMate ver. 1.15.3 - PellesC
User avatar
Silvio.Falconi
Posts: 4956
Joined: Thu Oct 18, 2012 7:17 pm

Re: cicle of date

Post by Silvio.Falconi »

resolved
I use : FiveWin for Harbour August 2020 (Revision) - Harbour 3.2.0dev (r1712141320) - Bcc7.30 - xMate ver. 1.15.3 - PellesC
Post Reply