Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Call WalkFolders(gwTempFolder)<br />
Next i<br />
End If<br />
End Sub<br />
40<br />
Example in Delphi:<br />
//gwFolder is a valid Folder object<br />
procedure WalkFolders (gwFolder:Variant);<br />
var i:integer;gwFolders,gwTempFolder:variant;<br />
begin<br />
gwFolders:=gwFolder.Folders;<br />
if gwFolders.Count > 0 then begin<br />
For i:=1 to gwFolders.Count do begin<br />
gwTempFolder := gwFolders.Item(i);<br />
ShowMessage(gwTempFolder.Name);<br />
WalkFolders(gwTempFolder);<br />
end;<br />
end;<br />
end<br />
Now if you call WalkFolders(), each folder in the Cabinet, and then each<br />
sub-folder, all the way to the bottom level will be displayed in sequence. Of<br />
course, you will likely never just show the folder names in this manner, but this<br />
example is illustrative of the way to recreate a folder structure from GroupWise.<br />
Nesting may create problems with the Folders.ItemByName() method<br />
because it will search all folders within the given Folders collection. Thus, as<br />
discussed above, you should examine the Folder.ParentFolder property to<br />
determine what level of nesting the folder object is in.<br />
The following properties also return a Folder object:<br />
• Account.Cabinet: Returns the Cabinet folder, which is a system folder.<br />
• Account.Calendar: Returns the Calendar folder, which is a system<br />
folder that holds appointment, note, and task items.<br />
• Account.DocumentsFolder: Returns the Documents folder, which<br />
holds recently used document references.<br />
• Account.Mailbox: Returns the Mailbox folder, which is the default<br />
delivery location for new mail items.<br />
• Account.RootFolder: Returns the top-level folder in the account. By<br />
default, this folder holds all other folders including the Mailbox, Calendar,<br />
Cabinet, WorkFolder, and DocumentsFolder. The end user can move them in<br />
the client, but usually does not do so.<br />
www.novell.com/appnotes