It looks like you cannot select the text by its item number.
Here is some code that will select, copy and paste the text
of the cell you clicked on. Add it near the bottom where the
ask dialog comes up showing the info of the cell you clicked
on in the field.
put line n of startRange into startSelection
put line n of endRange -1 into endSelection
select char startSelection to endSelection of target
copy
select text of fld id 1012 --this was a field I added
for testing so put your field here
paste
Check out SELECT in Rev to see how it is used in other ways
to help you paste it properly. It can have BEFORE, AFTER etc.
-=>JB<=-
On Jun 16, 2008, at 5:46 PM, Kresten Bjerg wrote:
Hi
Been working several hours with the copy paste solution, but all
attempts to copy selectedchunk (or chunkinfo) to a selected field
(in order to retrieve the selectedtext (with fontspecifications)
from there, to a variable, for further processing) fails.
The variable watcher reports e.g. on Put the clickchunk into
chunkInfo : "char 108 to 117 of field 363". But all attempts to
copy the thus indicated
chunk gives an elaborate "it" (many level adresses) different from
the text in the cell. And nothing gets pasted to the (visibly)
selected field. It seems like the
whole table is copied instead.
Could you suggest the scriptlines, which could do the trick ?
Kresten Sleepless
_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution
_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution