On Jan 2, 2007, at 1:17 PM, Youri wrote:

I tried :

        dim f, g as FolderItem
        f = new FolderItem("C001")
        g = GetFolderItem(app.MyFolderPath)
        f = g.Child("C001")
        f.createAsFolder


But I get a Nil exception on f.

Dim f AS Folderitem

f = getFolderItem("").Child("C001")
if f <> nil and f.exists = False then
   f.createAsFolder
Else
   // do something with the folderitem
End If

This finds or creates a file in the same directory as your app with the name C001.
To use another path, put something else in the 1st parenthesis ("")

HTH


Roger M. Clary
Class One Software
http://www.classonesoftware.com
[EMAIL PROTECTED]

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to