Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Where to keep global values ?
Message
De
01/05/2000 15:14:16
 
 
À
28/04/2000 20:17:25
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Divers
Thread ID:
00362947
Message ID:
00364847
Vues:
38
>>>What I need is more of an array so that I can say:
>>> ? gaDiaSemana[DOW(DATE()]
>>>I think I'll go with oApp.aDiaSemana[]
>>
>>Ok, but IMO, its to much work, too much to remember, and too slow for something that will never change. I'd still use #DEFINEd constants.
>
>OK Mike, how do I do this with constants? Sundays are paid at a different rate here, so the DOW() is important. e.g. a user enters "30/04/00" (30 April 2000) and I respond, "Domingo". How do I do that with constants? The way I respond now is: ? gaDiaSemana[DOW(ldDate)] I really do want to go with "the theoretiaclly right way" since every time I deviate from that I pay the price. So explain it to me in this case.
>
>TIA.
>
>Alex

If you're using a different language version of VFP, doesn't CDOW() give the day of the week in the language you're using?
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform