MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.
//Declaration OLEObject myoleobject, db, doc, rt_item, loo_ol_msg_cast myoleobject = CREATE OLEObject // loop for two minutes, or until notes is started successfully t_StartTime=Now() //wait 2 min for Notes to load ... Do Yield() //yeld control occasionally SetPointer(hourglass!) iResult = myoleobject.ConnectToNewObject("outlook.application") If iResult = 0 Then Exit //OK, Outlook is active Yield() Loop Until SecondsAfter(t_Starttime, now()) > 120 //try again in #sec if iResult <> 0 then f_user_error("Could not open Microsoft Outlook") return FALSE end if loo_ol_msg_cast = myoleobject.CreateItem(0)