Ahh...missed the DEFINE.....
>
>>Yes, it's a collection but one that Fox can't seem to figure out.
>
>Thanks for the sanity check<s>
>
>>One thing I am curious about, GetDefaultFolder(INBOX). I am assuming that you are using the constant int value for inbox there and not just INBOX?
>
>Yes, hence the #DEFINE.
>
>>>#DEFINE INBOX 6
>>>loOutLook = CREATE( "Outlook.Application" )
>>>loNameSpace = loOutLook.GetNameSpace( "MAPI" )
>>>loInboxItems = loNameSpace.GetDefaultFolder( INBOX ).Items
>>>FOR EACH loInboxItem IN loInboxItems
>>>*** do some thing here
>>>NEXT loInboxItem
>
>
>
>Paul
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05