PRB: Creator Type Not TEXT with FCREATE If Extension Not .TXT (130006)
The information in this article applies to:
- Microsoft Visual FoxPro for Macintosh 3.0b
- Microsoft FoxPro for Macintosh 2.6a
This article was previously published under Q130006 SYMPTOMS
The FCREATE() low level file function is used to create a text file that
doesn't have a file extension of .TXT. The Icon for the text file is just a
document, not a document with a FoxPro head on it. Get Info on the file
shows that it is a FoxPro file however. If the file is opened in a resource
editor, such as ResEdit, the Creator is FOXX but the Type is ????.
If the text file is created with a file extension of .TXT, it will have an
icon of a document with a FoxPro head on it. A resource editor will show
the Type as TEXT.
Customers have reported that not having a Type of TEXT has been known to
cause problems with certain software packages that use the text file.
CAUSE
FoxPro for Macintosh looks at file extensions when assigning Creator Types
to files. The .TXT extension along with the .FPM extension on the
CONFIG.FPM file are the only file extensions that get assigned a Creator
Type of TEXT. See page 402 of the Microsoft FoxPro for Macintosh
"Developer's Guide" for a listing of File Types and Extensions. If you have
Visual FoxPro for Macintosh version 3.0, search for File Extensions in the
on-line Help.
WORKAROUND
Create the text file with a .TXT file extension, and then use the RENAME
command to change the extension. See the sample code in the "Steps to
Reproduce Behavior" section of this article.
STATUS
This behavior is by design.
Modification Type: | Major | Last Reviewed: | 10/15/2003 |
---|
Keywords: | KB130006 kbAudDeveloper |
---|
|