WinBatch® Technical Support Forum

All Things WinBatch => WinBatch => Topic started by: JTaylor on September 15, 2020, 05:41:32 PM

Title: Date Control
Post by: JTaylor 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
Title: Re: Date Control
Post by: td 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. 
Title: Re: Date Control
Post by: JTaylor 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
Title: Re: Date Control
Post by: td 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.
Title: Re: Date Control
Post by: JTaylor 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