Outlook Calendar move Appointment using MAPI

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

Post Reply
User avatar
AUGE_OHR
Posts: 2093
Joined: Sun Aug 25, 2019 3:12 pm
DBs Used: DBF, PostgreSQL, MySQL, SQLite
Location: Hamburg, Germany

Outlook Calendar move Appointment using MAPI

Post by AUGE_OHR »

hi,

now i want to move a existing Appointment to other place.

i need some "Filter" and a Unique "Key" which normal is EVENTID ... but that "Key" is not good "readable"
i use "CreationTime" YYYYMMDDHHMMSS

Code: Select all

      cFilter := "[CreationTime] >='" + cStart + "' and [CreationTime] <= '" + cEnd + "'"
but there is another Problem :
"Filter" only accept "DateFormat" (German DD.MM.YYYY) and HH:MM ... NO Seconds :o

so i need to compare Result if Seconds -+3 match

Code: Select all

         IF SUBSTR( cStringStart, 1, 14 ) >= SUBSTR( LTRIM( STR( ROUND( VAL( cDBFCreDate ), 0 ) ) ), 1, 14 ) .OR. ;
            SUBSTR( cStringStart, 1, 14 ) <= SUBSTR( LTRIM( STR( ROUND( VAL( cDBFCreDate ) + 3, 0 ) ) ), 1, 14 )
MAPIMOVE.ZIP
(1.49 KiB) Downloaded 116 times
have fun
Jimmy
Post Reply