Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Need function to find Monday by Week No
Message
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01052733
Message ID:
01052844
Views:
9
>
>Dmitry,
>
>One other thing that I thought of regarding this problem.
>
>The eventual solution would also depend on a number of factors. Are we talking about a fiscal months/years? If so, then a table based solution might be the most appropriate. If it's a calendar year, does the first week include January 1st, or the first complete week?

George,

In this case, this is a calendar year. And my business logic calls for the first week to be the full week (starting on Monday).
Also, what is important here, is the solution has to fit into the existing UI (which has been in the application for almost 20 years). That is, the labels with the Week Number captions have been on this screen/window for a long time. But the downside was that the user had to click some other buttons to find out what calendar week corresponds to this or that week number. Yesterday I thought that it would be a simple idea to add a WAIT message on the MOUSE UP event to show that date. And it works very fast, so my question regarding the most efficient function was probably more academic than practical.
Now I need to figure out how to show the WAIT message next to the "clicked" label. Otherwise, the WAIT message is too far to the right from where I would like it to be.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform