TRY
oOutlook := CreateObject( "Outlook.Application" )
oAppItem := oOutlook:CreateItem( 1 )
oAppItem:Start = DTOC(dDate) + " " + cTime
oAppItem:StartTime = cTime + ":00"
SET CENTURY ON
oAppItem:Duration = nLenInMin * 60
oAppItem:Subject = cSubject
oAppItem:Body = cNotiz
oAppItem:Mileage = 225
oAppItem:Save()
lSave := .t.
CATCH oErr
lSave := .f.
cErrMsg += ' ' + cEol
cErrMsg += 'oErr:Subsystem = ' + oErr:subsystem + cEol
cErrMsg += 'oErr:Subcode = ' + Ltrim( Str( oErr:subCode ) ) + cEol
cErrMsg += 'oErr:description = ' + oErr:description + cEol
cErrMsg += 'oErr:filename = ' + oErr:filename + cEol
cErrMsg += 'oErr:Operation = ' + oErr:Operation + cEol
END
#include "FiveWin.ch"
function Main()
local oOutlook := CreateObject( "Outlook.Application" )
local oAppItem := oOutlook:CreateItem( 1 )
MsgInfo( "done" )
return nil
#include "FiveWin.ch"
function Main()
local oOutlook := CreateObject( "Outlook.Application" )
local oAppItem := oOutlook:CreateItem( 1 )
oAppItem:Start = DTOC( Date() ) + " " + Time()
MsgInfo( "done" )
return nil
Antonio Linares wrote:Darrell,
Do you also get an error with the above code ?
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: No registered users and 81 guests