Using MC 2.5 on Windows XP<br>
<br>
My understanding is that the clipboardData is an array with 1 to 6 keys. But it appears to me that<br>
(1) setting one element of the array can empty out elements previously set;<br>
(2) there is some problem loading the "image" element;<br>
(3) I can't get all of "the keys" of the clipboardData;<br>
(4) "the clipboard" only reports the most recently set key (or "text" even if "RTF" was most recently set);<br>
(5) I can't put the clipboardData into a variable and then retrieve an
array element from that variable or get the keys of that variable.<br>
<br>
So is it not really an array? Can it store more than one type of data at once?<br>
<br>
I used the script below to experiment, and tried various changes in the order of the first four commands.<br>
<br>
on mouseUp<br>
set the clipboardData["text"] to fld 2<br>
set the clipboardData["unicode"] to the unicodeText of fld 2<br>
set the clipboardData["image"] to image 1<br>
set the clipboardData["RTF"] to the RTFText of fld 2<br>
<br>
put "text" && (the clipboardData["text"] is not empty) into fld 1<br>
put return & "Image" && (the clipboardData["image"] is not empty) after fld 1<br>
put return & "RTF" && (the clipboardData["RTF"] is not empty) after fld 1<br>
put return & "Unicode" && (the clipboardData["unicode"] is not empty) after fld 1<br>
<br>
put the clipboardData into myArrayVar<br>
put return & "***" & the keys of the clipboardData after fld 1<br>
put "***" & the keys of myArrayVar after fld 1<br>
put "***" & the clipboard after fld 1<br>
end mouseUp<br>
<br>
Any insights?<br>
<br>
David Epstein<br>