Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do you display the year of the date field on a FORM?
Message
From
29/06/1998 14:08:56
 
 
To
29/06/1998 14:06:41
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00112588
Message ID:
00112596
Views:
19
>>>How do you display the year only of the date field on a FORM?
>>
>>Thisform.Textbox.Value=YEAR(table1.datefield)
>---
>Hi Edward
>I have a value field on the form called txtyear.. It looks
>like 01/01/98. In the properties, where do I put:
>Thisform.Textbox.Value=YEAR(table1.datefield)?
>I would like txtyear to display like: 1998
>thanks

***Form.Refresh (or some other place fired each time your change record)
Thisform.txtYear.Value=YEAR(table1.datefield)
Edward Pikman
Independent Consultant
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform