The parameter used ("any" or "text") is not the mac type property of the file. It's a file type you have to define in RB. You define a new file type set (in RB 5.5 and earlier, it's in the Edit menu, under "File types"; in recents versions, it seems to be in the "Project" menu, under the "Add" submenu, "New file type set").

After adding a file type set, fill the informations (name, mac type, mac creator, extension, etc.), use the name you entered for the file type set in the parameter of the GetOpenFolderItem.

Hope this helps.

Le 7 févr. 07 à 12:33 Soir, Jacob Palme a écrit:

What is wrong with this REALbasic statement:

  Dim FileToDump As FolderItem
  FileToDump = GetOpenFolderItem("any")

When I execute this command, all files are greyed out and
I cannot open any file. I have also tried with

  Dim FileToDump As FolderItem
  FileToDump = GetOpenFolderItem("text")

with the same result, even though the files definitely
have the "TEXT" file type and the file ending ".txt".

I also tried:

  Dim FileToDump As FolderItem
  FileToDump = GetOpenFolderItem("Application/text")

again with the same result, all files are greyed out!

Where can I find documentation of the allowed values
of the Filter parameter to GetOpenFolderItem. All
I can find in the documentation are examples,
all of them referring to non-text files.

--
Jacob Palme <[EMAIL PROTECTED]> (Stockholm University and KTH)
for more info see URL: http://www.dsv.su.se/jpalme/
_______________________________________________
Unsubscribe:
<[EMAIL PROTECTED]>

REAL Software has decided to consolidate this mailing list with the online Forums. On Monday, February 12, 2007, this mailing list will no longer be active. We encourage you to continue your REALbasic and REAL SQL Server discussions on the Forums. If you are not presently a member of the forum, please sign up today at <http://forums.realsoftware.com>.

_______________________________________________
Unsubscribe:
<[EMAIL PROTECTED]>

REAL Software has decided to consolidate this mailing list with the online Forums.  
On Monday, February 12, 2007, this mailing list will no longer be active.  We 
encourage you to continue your REALbasic and REAL SQL Server discussions on the 
Forums.  If you are not presently a member of the forum, please sign up today at 
<http://forums.realsoftware.com>.

Reply via email to