/ Forums / Advansys Formativ / Creating Solutions with Formativ / Appointment duration from DateTime controls / Reply To: Appointment duration from DateTime controls
November 1, 2007 at 3:13 pm
#7900
Hmmm. I still have a problem. I have a form I created using the visual forms designer named “NewTimeRecord”
iTimePeriodBegin = utilities.DateToISO(now)
iTimePeriodEnd = utilities.DateToISO(now)
NewTimeRecord.DatePicker.Date = iTimePeriodEnd
NewTimeRecord.TimeBeginPicker.Date = iTimePeriodBegin
NewTimeRecord.TimeEndPicker.Date = iTimePeriodEnd
but the applet crashes on the third line, “NewTimeRecord.DatePicker.Date = iTimePeriodEnd”
EVariantTypeCastError
<path to>.vbf
Could not convert variant of type (OleStr) into type (Double) at line 17, column 5