Thank you all,


However, I was thinking of setting the property in code when the app starts, but now, thinking of it I should as you all mentionned to test for the PreferencesFolder.

But, is it only to be "clean" as it is mentionned in the RB user's guide that it is cross platform, or is there any cross-platform issues?


Cheers,


Youri





Craig A. Finseth wrote:
   On Jan 10, 2007, at 2:17 PM, Youri wrote:

   > I have created a property in my app as :
   >
   > pathtomyDB as folderitem and set its default value as :
   >
   > PreferencesFolder.child("preferences.rsd")
   >
   >
   > But I get a syntax error when I try to run the project.
   >
   >
   > Where am I going wrong?

   FolderItem.Child is a method and cannot be used in  this manner.

What you want to do is something like:

        dim f as FolderItem
        f = PreferencesFolder
        if f = nil then ...handle error...
        f = f.Child("preferences.rsd")
        if f = nil then ...handle error...
        ...f is now what you use...

Craig
_______________________________________________
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>


_______________________________________________
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