Author Topic: Date Control  (Read 55 times)

JTaylor

  • Pundit
  • *****
  • Posts: 1363
    • Data & Stuff Inc.
Date Control
« on: September 15, 2020, 05:41:32 pm »
The documentation leads me to believe I can do something like this:

    DialogControlGet(SCH_Handle,"dt_SCH_schedule_filter",@dcDate,"2020:09:19:00:00:01|2020:09:27:00:00:01|2020:09:13:00:00:01|2020:09:10:00:00:01|2020:09:01:00:00:01")

but it does not work.   Can I do this?   If so, what am I missing.    I have tried two dates in case it would only work for a range but that didn't work either.

What am I missings?   Thanks.

Jim

td

  • Tech Support
  • *****
  • Posts: 3467
    • WinBatch
Re: Date Control
« Reply #1 on: September 15, 2020, 05:59:16 pm »
Not sure what specific documentation you are referring nor which control you are referring to but DialogContorlGet with @dcDate returns the date displayed in the control in either case. 
"No one who sees a peregrine falcon fly can ever forget the beauty and thrill of that flight."
  - Dr. Tom Cade

JTaylor

  • Pundit
  • *****
  • Posts: 1363
    • Data & Stuff Inc.
Re: Date Control
« Reply #2 on: September 15, 2020, 06:15:19 pm »
Sorry...that should have been "DialogControlSet()"   

Date Picker or Calendar.    Sorry if that was ambiguous.

Can I have it only show a certain list of dates in the Picker or select multiple dates on a calendar?  Assuming I use the right function.  When I use Set and that string of dates I only get two dates.  The 13th and 27th.

Jim

td

  • Tech Support
  • *****
  • Posts: 3467
    • WinBatch
Re: Date Control
« Reply #3 on: September 16, 2020, 01:04:58 am »
With DialogControlSet you can use up to three dates and/or times.  The first is the displayed date and the other two are the range.  If I recall correctly, neither one has a multi-select option.  I guess the function's topic in the help file could be clear about that.
"No one who sees a peregrine falcon fly can ever forget the beauty and thrill of that flight."
  - Dr. Tom Cade

JTaylor

  • Pundit
  • *****
  • Posts: 1363
    • Data & Stuff Inc.
Re: Date Control
« Reply #4 on: September 16, 2020, 03:05:42 pm »
Okay.  Thanks.    I think I understood that from somewhere at some point, now that you explain it, but agreed that the Help could probably be a bit more explicit in places.

Jim