Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Microsoft Date & Time Picker Control
Message
De
17/05/2006 06:49:48
 
 
À
16/05/2006 22:19:43
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01122271
Message ID:
01122594
Vues:
31
Hi thanks for your advice. When I go to the General tab of the DTPicker Properties,it displays a blank screen. There is nothing for me to select. However, there is a CustomFormat in the Control Properties, please advise what should be written in it.

Perhaps the most useful property is Format that specifies how the data is displayed in the textbox portion of the control. There are three pre-defined formats that you can use or, by setting the Format to 3, you can specify your own format using the CustomFormat propertyL

Possible formats for the Date and Time Picker
Value Explanation
0 Long date as specified in the windows control panel. For example: Sunday, July 25, 2002
1 Short date as specified in the windows control panel. For example: 7/25/02
2 Time format. For example: 4:20 PM Note that even though only the time is displayed, the control’s value still contains the date portion of the value.
3 Custom. This setting allows you to specify your own custom format in the controls CustomFormat property

When the Date and Time Picker’s Format property is set to 3-Custom, you must specify the CustomFormat. This property defines the format expression that will be used to display the date in the textbox portion of the control. The following format strings are supported by the control.

Possible formats for the Date and Time Picker
String Description
d The one- or two-digit day.
dd The two-digit day. Single digit day values are preceded by a zero.
ddd The three-character day-of-week abbreviation.
dddd The full day-of-week name.
h The one- or two-digit hour in 12-hour format.
hh The two-digit hour in 12-hour format. Single digit values are preceded by a zero.
H The one- or two-digit hour in 24-hour format.
HH The two-digit hour in 24-hour format. Single digit values are preceded by a zero.
m The one- or two-digit minute.
mm The two-digit minute. Single digit values are preceded by a zero.
M The one- or two-digit month number.
MM The two-digit month number. Single digit values are preceded by a zero.
MMM The three-character month abbreviation.
MMMM The full month name.
s The one- or two- digit seconds.
ss The two-digit seconds. Single digit values are proceeded by a zero.
t The one-letter AM/PM abbreviation (that is, "AM" is displayed as "A").
tt The two-letter AM/PM abbreviation (that is, "AM" is displayed as "AM").
X A callback field that gives programmer control over the displayed field. Multiple 'X' characters can be used in series to signify unique callback fields.
y The one-digit year. For example, 2002 would be displayed as 2.
yy The last two digits of the year. For example, 2002 would be displayed as 02.
yyy The full year. For example, 2002 would be displayed as 2002.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform