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:
01052777
Views:
7
>>Dmitry,
>>
>>First of all, don't be embarrassed to show the code. No one's making judgments.
>>
>>Unfortunately, a lot of people equate speed with the number of lines of code. Sometimes it's correct. Sometimes not.
>>
>>Before responding, I'd ask two questions. What are the circumstances under which this function is being called? Are we talking about milliseconds or minutes with your function?
>>
>>Remember, it's easy to offer advice in a vacuum. However, without specific details, it's hard to come up with an appropriate solution.
>
>George,
>
>Here is what I need to use this function for. I have 52 labels on a form, each one has Caption with number corresponding to the week number. I want the user to be able to click on any label and in Mouse Up method I would display (in WAIT) the calendar date corresponding to the Monday of the clicked week number.
>
>I wanted the speed because (I think) that the user will be frustrated if they have to wait (even 2 seconds) after clicking on the label. So far, in my tests, on my PC, it seems to be very fast, not even a second.
>
>Thank you for your input.

Dmitry,

You're welcome.

With all due respect, it seems to me that this is a problem that hasn't occurred yet.

I've been in this business for 22 years. If I can offer one piece of advice to you it would be, "Don't try to solve problems that haven't occurred". You're doing both yourself and your users a big help if you follow the above.
George

Ubi caritas et amor, deus ibi est
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform