Problem with BinaryEncode and variable params

Bernard Devlin revolution at knowledgeworks.plus.com
Sat Dec 16 12:21:08 EST 2006


Bryan,

put "0,1,0" into tColors
put item 1 of tColors+0 into c1
put item 2 of tColors+0 into c2
put item 3 of tColors+0 into c3
put binaryEncode("CCCC",0,c1,c2,c3) into varNewImageData
put varNewImageData

works for me insofar as it will put some binary gibberish into the  
msgbox.  Are you sure that at least 1 item in tColors is non-zero?

I have never used imageData or binaryEncode, so maybe I am not  
appreciating your problem.

Bernard



More information about the use-livecode mailing list