binaryEncode question

Kurt Kaufman kurtkaufman at hotmail.com
Fri May 3 22:13:00 EDT 2002


Thanks to Jeanne DeVoto for her suggestion.  Which brings me to my next 
question (I hope I'm not asking too many!) as to why the following 
script leaves me with an empty (0 bytes) new file (global gBinData 
contains binary data converted from entered Hex bytes using the 
binaryEncode function, but I can't get this to work with plain text, 
either):


on mouseup
   global gBinData
   ask file "enter name of file"
   put it into newFile
   open file newFile for binary write
   write gBinData to file newFile
end mouseup


None of the other permutations I tried have worked.  I'm sure I need a 
dope slap, here. :-)

Any help appreciated!
-Kurt




More information about the use-livecode mailing list