I have created a set of functions that create tasks from my helpdesk application and out them into the correct date column, however I can not get the function to delete a task working here is the code I am using :-
function cleartasks loOutlook = CREATE("Outlook.Application") loNamespace = loOutlook.GetNameSpace("MAPI") oTasks = loNameSpace.GetDefaultFolder(13) for each loTask in oTasks.Items if substr(loTask.Subject,1,1)='#' loTask.Delete endif endfor return When i run this the line [lotask.Delete] crashes saying "Parameter not optional", after googling this I found I need some reference number to pass as a parameter ??? Any assistance would be greatly appreciated. -- Stephen Weeks stephenwe...@fastmail.fm -- http://www.fastmail.fm - A no graphics, no pop-ups email service _______________________________________________ Post Messages to: ProFox@leafe.com Subscription Maintenance: http://leafe.com/mailman/listinfo/profox OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/1316765420.28800.140258146822...@webmail.messagingengine.com ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.