Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
*** You can use these to decide if you want
*** to include the folder in the cursor
#DEFINE olMailItem 0
#DEFINE olAppointmentItem 1
#DEFINE olContactItem 2
#DEFINE olTaskItem 3
#DEFINE olJournalItem 4
#DEFINE olNoteItem 5
#DEFINE olPostItem 6
#DEFINE olDistributionListItem 7
LOCALE loRootFolder
PRIVATE poOutlook, poNameSpace
CREATE CURSOR FolderNames ( FldrName C( 50 ), DefaultItemType I )
poOutLook = CREATEOBJECT( 'Outlook.Application' )
IF VARTYPE( poOutLook ) = 'O'
poNameSpace = poOutlook.GetNamespace( 'MAPI' )
loRootFolder = poNameSpace.Folders(1)
GetSubFolders( loRootFolder )
ENDIF
FUNCTION GetSubFolders( toFolder )
LOCAL loFolders, loFolder
*** Check for the defaultItemType if you want
*** to include only folders that contain mail items
IF toFolder.DefaultItemType = 0 && olMailItem
INSERT INTO FolderNames ( FldrName, DefaultItemType ) VALUES ( loRootFolder.Name, loRootFolder.DefaultItemType )
ENDIF
*** Now see if this folder has folders to process
IF toFolder.Class = 2 && olFolder
loFolders = toFolder.Folders
FOR EACH loFolder IN loFolders
GetSubFolders( loRootFolder )
ENDFOR
ENDIF
There has to be a way to do this.