Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Algorithm for missing dates.
Message
 
À
30/07/2009 18:51:34
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01415572
Message ID:
01415601
Vues:
70
This message has been marked as a message which has helped to the initial question of the thread.
> but I have to solve another issue with skipping/ignoring completely empty weeks.

What issue? It looks like we don't have all requirements yet. <s>

It sounds like you should determine min and max dates, then round to whatever period you use (week, months). Determine the number of days and start with REPLICATE(".",nDays). Then use STUFF() at position dDate-DMin+1 to replace the dot with character code. This would need to happen in a loop.
--
Christof
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform