@...DATEPICKER \/ DEFINE DATEPICKER

Creates a DatePicker control

Standard Syntax (xBase Style):

 @ <nRow> ,<nCol>
 DATEPICKER<ControlName>
 [ OF | PARENT <cParentWindowName> ]
 [ VALUE <dValue> ]
 [ FIELD <FieldName> ]
 [ WIDTH <nWidth> ]
 [ HEIGHT <nHeight> ]
 [ FONT <cFontName> SIZE <nFontSize> ]
 [ BOLD ] [ ITALIC ] [ UNDERLINE ] [ STRIKEOUT ]
 [ TOOLTIP <cToolTipText> ]
 [ SHOWNONE ]
 [ UPDOWN ]
 [ RIGHTALIGN ]
 [ ON GOTFOCUS <OnGotFocusProcedur> | <bBlock> ]
 [ ON CHANGE <OnChangeProcedure> | <bBlock> ]
 [ ON LOSTFOCUS <OnLostFocusProcedure> | <bBlock> ]
 [ HELPID <nHelpId> ]
 [ ON ENTER <OnEnterProcedure> | <bBlock> ]
 [ INVISIBLE ]
 [ NOTABSTOP ]
 [ FORMAT <cDateFormat> ]

Alternate Syntax:

DEFINE DATEPICKER <ControlName>
   PARENT <ParentWindowName>
   ROW <nValue>
   COL <nValue>
   WIDTH <nValue>
   HEIGHT <nValue>
   FONTNAME <cValue>
   FONTSIZE <nValue>
   FONTBOLD <lValue>
   FONTITALIC <lValue>
   FONTUNDERLINE <lValue>
   FONTSTRIKEOUT <lValue>
   TOOLTIP <cValue>
   ONGOTFOCUS <ActionProcedure>
   ONLOSTFOCUS <ActionProcedure>
   ONCHANGE <ActionProcedure>
   TABSTOP <lValue>
   HELPID <nValue>
   VISIBLE <lValue>
   VALUE <dValue>
   SHOWNONE <lValue>
   UPDOWN <lValue>
   RIGHTALIGN <lValue>
   ONENTER <ActionProcedure>
   FORMAT <cDateFormat>
END DATEPICKER

Properties:

D: Available at control definition only R: Read-Only

Events:

  • OnGotFocus
  • OnChange
  • OnLostFocus

Methods:

  • Show
  • Hide
  • SetFocus
  • Release
  • Save
  • Refresh

Note: description of the cDateFormat string

"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 weekday abbreviation.
"dddd" The full weekday name.
"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.
"yy" The last two digits of the year (that is, 1996 would be displayed as "96").
"yyyy" The full year (that is, 1996 would be displayed as "1996").

Example:

"d.MM.yyyy" will display date as 9.02.2012
"dd.MM.yyyy" will display date as 09.02.2012
"dd/MM/yyyy" will display date as 16/02/2012
"dd.MMM.yyyy" will display date as 16. FEB. 2012
  • To make the information more readable, you can add body text to the format string by enclosing it in single quotes.
  • Spaces and punctuation marks do not need to be quoted. Nonformat characters that are not delimited by single quotes will result in unpredictable display by the DATEPICKER control.
  • For example, to display the current date with the format "'Today is: 04:22:31 Tuesday Mar 23, 1996", the format string is "'Today is: 'hh':'m':'s dddd MMM dd', 'yyyy".
  • To include a single quote in your body text, use two consecutive single quotes.
  • For example, "'Don''t forget' MMM dd',' yyyy" produces output that looks like:
  • Do not forget Mar 23, 1996. It is not necessary to use quotes with the comma, so "'Don''t forget' MMM dd, yyyy" is also valid, and produces the same output.

results matching ""

    No results matching ""