Marc,
There is no need to write anything
local aa[1]
aa = m.o.range("myRange").Value
?alen(aa, 1)
?alen(aa, 2)
>Thank you very much Gregory.
>
>The advantage of using the Clipboard is performance. The copy function dumps the range into a string in vfp, the cells are separated by tabs (Ascii 9) (not checked how rows are separated, but that's easy to find out). Was just hoping someone had already written a function that de-compiles that.
>
>Take care and kind regards,
>
>Marc
>
Gregory