Thanks Ken. It works when I set it *before* the ""open file" command. As for the file type it was good of you to mention that but I wanted it to be a Rev stack due to I was transferring a Rev stack with a communications program I wrote and I
wanted to save it properly after it is transferred.

-=>JB<=-


On Dec 4, 2008, at 4:10 PM, Ken Ray wrote:




On 12/4/08 3:15 PM, "-= JB =-" <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED]
Web Site: http://www.sonsothunder.com/


_______________________________________________
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


_______________________________________________
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to