Page 1 of 1
cicle of date
Posted: Mon Sep 02, 2019 7:40 pm
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 ?
Re: cicle of date
Posted: Mon Sep 02, 2019 7:50 pm
by karinha
Re: cicle of date
Posted: Mon Sep 02, 2019 8:04 pm
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
Re: cicle of date
Posted: Mon Sep 02, 2019 9:00 pm
by Silvio.Falconi
THE PROBLEM IS
skip records by putting in empty record archives
Re: cicle of date
Posted: Mon Sep 02, 2019 10:04 pm
by Silvio.Falconi
but now pehaps
I found the error
I have a big big dbf with many numbers
and I'm losing myself
Re: cicle of date
Posted: Tue Sep 03, 2019 2:51 pm
by Silvio.Falconi
resolved