Koen Piller
Programmer
Hi,
I am trying to make use of the oleCalendar and have therefor following code (see thread 184-213348)
This brings up the calendar alright, but now I also would like to have the selected date from the calender into my textbox:
Thisform.txtCalenderdate.value
Don’t seem to be able to get the result, how to do?
Regards,
Stay healthy
Koen
I am trying to make use of the oleCalendar and have therefor following code (see thread 184-213348)
Code:
#DEFINE C_CALCAPTION_LOC "Data Calendar"
oCalForm = Create('form')
oCalForm.NewObject("oleCalendar","_olecalendar","_datetime")
WITH oCalForm.oleCalendar
.date_column = "Date()"
.RefreshDisplay()
.BackColor = THISFORM.BackColor
.Visible = .T.
ENDWITH
WITH oCalForm
.AutoCenter = .T.
.BorderStyle = 2
.MaxButton = .F.
.MinButton = .F.
.Height = oCalForm.oleCalendar.Height
.Width = oCalForm.oleCalendar.Width
.Caption = C_CALCAPTION_LOC
ENDWITH
oCalForm.Show(1)
THISFORM.Refresh
This brings up the calendar alright, but now I also would like to have the selected date from the calender into my textbox:
Thisform.txtCalenderdate.value
Don’t seem to be able to get the result, how to do?
Regards,
Stay healthy
Koen