SelectDateTime
   Download

SelectDateTime (56 KB)

Bugfix 08/09/2003: 
- empty string is returned if the user selects "Cancel"
- SelectTime: minutes of EndTime are now returned correctly

Functions definition

external "CASL_SelectDateTime";

function SelectOneTime(numeric xhour, numeric xminute, string Title) as string;
# returns a time string like "hh:mm" (22:15) or "" if "Cancel" was selected
# Parameters:
# xhour, yhour: time values
# Title: title string for the dialog window


function SelectTime(numeric StartHour, numeric StartMinute, 
                    numeric EndHour, numeric EndMinute,
                    numeric Untimed, string Title,
                    numeric StartofDay, numeric EndofDay,
                    numeric StartofDisplay, string Separator) as string;
# returns 
#    - a time string like "hh:mm<separator>hh:mm" (22:15|23:50) or
#                          timestring in front of separator: StartTime
#                          timestring behind separator: EndTime
#    - "None" if "No Time" was selected
#    - "" (empty string) if "Cancel" was selected
# Parameters:
#    StartHour, StartMinute: start tine 
#    EndHour, EndMinute: end time
#    Untimed: if true, no time is selected in dialog
#    Title: title string for the dialog window
#    StartofDay: used as StartTime, if the user selects "All Day" in dialog
#    EndofDay: used as EndTime, if the user selects "All Day" in dialog
#    StartofDisplay: first hour initially visible.in dialaog
#    Separator: separator string between StartTime and EndTime in return string

function SelectDate(numeric xyear, numeric xmonth, numeric xday, string xtype, string Title) as                     string;
# returns a date string like "yyyymmdd" (20020615) or "" if "Cancel" was selected
# input: 
#    xtype = "day" :
#    xtype = "month" :
#    xtype = "week" :


end_external;

 

  © 2005 Ulrich Riepert / Authorized for posting at CASLSoft.com