>***mlemail.m_email() >with thisform.Hscntemail > with .Hsoptstatus > do case > case .Option1.value = 1 > mstatus = " type <> ' ' " &&&& type = newsletter > case .Option2.value = 1 > mstatus = " group <> ' ' " &&&& group = advertising > endcase > endwith > select ; > e_mail, ; > type, ; > group ; > from ; > mail ; > where ; > e_mail <> " " ; > and ; > &mstatus ; > into cursor sys(2015) > #define olfolderdisplaynormal 0 > loOutlook = createobject("outlook.application") > lonamespace = loOutlook.getnamespace("mapi") > scan > wait window at 25,50 "Please be patient..." nowait > memailaddress = e_mail > loemailitem = loOutlook.createitem(0) > loemailitem.to = memailaddress > loemailitem.subject = .Hstxtsubject.value > loemailitem.body = .Hsedtbody.value > loemailitem.send() > endscan > looutlook = .null. > release looutlook >endwith >thisform.release>
thisform.r_cstarttime = datetime(ln_year, ln_month, ln_day, ln_hours, ln_minutes, ln_seconds)If there's a reason than you have to evaluate the expression stored in thisform.r_cstarttime to get datetime
ldt_starttime = EVAL(thisform.r_cstarttime )Actually it wouldn't work because all variables in that expression are alreday out of scope at that time.