WinXTimePicker_GetTime


WinXTimePicker_GetTime (hDTP, SYSTEMTIME @time, @timeValid)

Gets the time from a Time/Date Picker control

Parameter Description
hDTP The handle to the control to get the time from
SYSTEMTIME @time The variable to receive the time
@timeValid This variable will be set to $$TRUE if the time is set, otherwise $$FALSE

Returns

$$TRUE on success or $$FALSE on fail

Remarks

none

Examples

SYSTEMTIME time

' Get the currently selected date
WinXTimerPicker_GetTime (hDTP, @time, @timeValid)
IF timeValid
  PRINT "Day: ";time.day;", Month: ";time.month;", Year: ";time.year
ELSE
  PRINT "Time not set"
END IF

Related Links

Time/Date Controls
WinXAddTimePicker
WinXTimePicker_SetTime