On 6/23/06 4:56 AM, "Tehenne" <[EMAIL PROTECTED]> wrote:
> Hello
>
> I work on Mac (OS X) with a database created on a PC (Windows).
>
> In this database, there is an absoluPath of a file :
>
> path="C:\Documents and Settings\Bibi\Bureau\Requis\Medias\monChien.jpg
>
> When I try (on Mac) :
>
> if getFolderItem(path)<>nil and getFolderItem(path).exists then
> msgbox "OK"
> else
> msgbox "NO"
> end
>
> I have the answer "OK".
>
> How to resolve this problem (bug) ?
>
> Regards,
>
>
> --
> Tehenne Saint-Denis de la Réunion
If I recall correctly, the last time this was discussed, the prevailing
opinion was that this is *not* a bug.
GetFolderItem(path) does not attempt to parse " C:\Documents and
Settings\Bibi\Bureau\Requis\Medias\monChien.jpg" as an absolute path.
It attempts to interpret "C:\Documents and
Settings\Bibi\Bureau\Requis\Medias\monChien.jpg" as the name of a document.
You may add the optional pathMode parameter.
While path contains an invalid character, it still returns a valid
folderItem.
Alternatives:
1. Use the DocumentsFolder Function.
2. Use the SpecialFolder Module.
3. If you must, use something like Volume(0).child("Documents and
Settings").child ....
Michael
_______________________________________________
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>