Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Any alternative to CMONTH()
Message
From
07/01/2000 11:40:08
 
 
To
07/01/2000 11:33:41
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00314516
Message ID:
00314538
Views:
21
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform