Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Option for date of week
Message
De
11/10/2005 15:56:07
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
 
À
11/10/2005 09:50:59
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01057746
Message ID:
01058061
Vues:
23
>>>>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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform