Is the clipboardData really an array?

David Epstein dfepstein at gmail.com
Thu Feb 23 08:04:33 CST 2006


Using MC 2.5 on Windows XP

My understanding is that the clipboardData is an array with 1 to 6 keys.
But it appears to me that
(1) setting one element of the array can empty out elements previously set;
(2) there is some problem loading the "image" element;
(3) I can't get all of "the keys" of the clipboardData;
(4) "the clipboard" only reports the most recently set key (or "text" even
if "RTF" was most recently set);
(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.

So is it not really an array?  Can it store more than one type of data at
once?

I used the script below to experiment, and tried various changes in the
order of the first four commands.

on mouseUp
  set the clipboardData["text"] to fld 2
  set the clipboardData["unicode"] to the unicodeText of fld 2
  set the clipboardData["image"] to image 1
  set the clipboardData["RTF"] to the RTFText of fld 2

  put "text" && (the clipboardData["text"] is not empty) into fld 1
  put return & "Image" && (the clipboardData["image"] is not empty) after
fld 1
  put return & "RTF" && (the clipboardData["RTF"] is not empty) after fld 1
  put return & "Unicode" && (the clipboardData["unicode"] is not empty)
after fld 1

  put the clipboardData into myArrayVar
  put return & "***" & the keys of the clipboardData after fld 1
  put "***" & the keys of myArrayVar after fld 1
  put "***" & the clipboard after fld 1
end mouseUp

Any insights?

David Epstein
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.runrev.com/pipermail/metacard/attachments/20060223/3811fb89/attachment.html


More information about the metacard mailing list