Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Any alternative to CMONTH()
Message
De
07/01/2000 11:40:08
 
 
À
07/01/2000 11:33:41
Nancy Folsom
Pixel Dust Industries
Washington, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00314516
Message ID:
00314538
Vues:
19
Great answer. And if Jeff's Textboxes are static, he can put this code in Init for the TextBox and if the information is dynamic, he can put it into Refresh. In either case, he can set the Value to the EVAL condition.

Jeff, also disable the textbox (Enabled=.F.) or (ReadOnly=.T.)

>>I got a table that uses values from 1 to 12 in a field. I want to show as a Character month in a text box.
>
>
ln = myTable.myField
>lc = LTRIM( STR( ln ) )
>? cmonth( EVAL( '{^'+str(year(date()),4)+'/'+lc+'/01}'))
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform