fileType & creator
Ken Ray
kray at sonsothunder.com
Thu Dec 4 19:10:21 EST 2008
On 12/4/08 3:15 PM, "-= JB =-" <sundown at pacifier.com> wrote:
> I am creating a new file using the open file command. I set the
> fileType after it
> is opened then I write to the file and close it as seen in the code
> below.
I think you need to set the fileType *before* the "open file" command...
> open file filePath for binary update
> set the filetype to "RevoRSTK"
> --set the stackfiletype to "RevoRSTK"
> put fld id 1009 into theFile
> write theFile to file filePath
> close file filePath
Also, you're writing text to a file that has a type/creator code that
matches a Revolution stack? If that wasn't the intention, you should change
the type/creator accordingly...
Ken Ray
Sons of Thunder Software, Inc.
Email: kray at sonsothunder.com
Web Site: http://www.sonsothunder.com/
More information about the use-livecode
mailing list