fileType & creator

-= JB =- sundown at pacifier.com
Thu Dec 4 22:04:23 EST 2008


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 =-" <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/
>
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your  
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>




More information about the use-livecode mailing list