Welcome to the SRP Forum! Please refer to the SRP Forum FAQ post if you have any questions regarding how the forum works.
Setting the date to show on the Month calendar
OI10
I have this code to set the date but is always showing , what am I doing wrong.
Qualify = ""
Qualify<1> = 1 ; // Enable OLE event
Qualify<4> = 2 ; // Synchronous event processing
Ctrl=@Window:".SRP_DATE_PICKER"
Send_Message(Ctrl, "QUALIFY_EVENT", "OnDblClick", Qualify)
Set_Property_only(Ctrl, "OLE.Selection", default)
call forward_event()
I have this code to set the date but is always showing , what am I doing wrong.
Qualify = ""
Qualify<1> = 1 ; // Enable OLE event
Qualify<4> = 2 ; // Synchronous event processing
Ctrl=@Window:".SRP_DATE_PICKER"
Send_Message(Ctrl, "QUALIFY_EVENT", "OnDblClick", Qualify)
Set_Property_only(Ctrl, "OLE.Selection", default)
call forward_event()
Comments
How do you know when to use asynchronous or synchronous ?
I just have that setup for all the qualify events .
what should the value in Qualify<4> be for asynchronous .
Is asynchronous a better default. I just copied the Qualify setup from somewhere.
To make it asynchronous, omit Qualify<4> or set it to "".
If previous month the shows in previous month if I arrow to it.
/ Set the selection to today's date Set_Property(@Window:".OLE_DATEPICKER", "OLE.Selection", Date())
If previous month the shows in previous month if I arrow to it.
On the money there Barry. The selected date and the displayed month/s are separate properties so if you are going to default the selected date then I would suggest also defaulting the "FirstMonth" property to the month of the selected date. The default display is this month.
Did not pick Firstmonth as being the relevant property.