Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Option for date of week
Message
From
11/10/2005 15:56:07
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
11/10/2005 09:50:59
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01057746
Message ID:
01058061
Views:
12
>>>>I have option group with days of week (only Monday through Friday). I have nDow in my table. How can I bind this optiongroup to my field's value, if nDow for Monday is 2?
>>>>
>>>>Thanks in advance.
>
>AFAIK it can't be done. The trick you described below is the best I can think of in this case.

Well it can... but not with a bound optiongroup. She'd have to have an unbound, i.e. no controlsource, and then somewhere in the validation say

replace nDow in (cAlias) with this.value+1

and in refresh

if between(cAlias.ndow,2,6)
this.value=cAlias.ndow-1
else
this.value=null
endif

...or something of the kind. Don't know whether this is any simpler than the hidden Saturday optionbutton kludge.

I'm actually amazed that the first day of the week is not universally Monday. In Slavic languages, the names of the days are pretty much numbers - Tuesday is Utorak, Torek, Vtornik - from vtori, second. Sreda (wednesday) means middle (ha!- that makes Sunday the first day, we got a contradiction), chetverg, csütörtök (that's Hungarian), chetvrtak - Thursday, from chetri, chetire, shtiri - four; petak, pentek, pyatnica (Friday) from pet, pyat - which is five.

I guess back in old days they weren't that strong with standards, eh? Even within Christianity they couldn't get the week straight - if the so-called creator rested the seventh day, why would that seventh day be the first in a thus defined week, makes no sense to me.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform