/ Forums / Advansys Formativ / Creating Solutions with Formativ / Appointment duration from DateTime controls / Reply To: Appointment duration from DateTime controls

#7900
dgerisch
Participant

    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