restore selection from selectedChunk expression

Brahmanathaswami brahma at hindu.org
Fri Jul 31 18:52:53 EDT 2015


If we make a text selection and store it as a selectedChunk string

e.g

gCurrentSelection


which them would have say... a value of

char 669 to 1094 of field 6

How to I re-select that text?

global gCurrentSelection
on mouseUp
    set the backgroundcolor of gCurrentSelection to yellow
end mouseUp

works'

but

global gCurrentSelection
on mouseUp
   selectgCurrentSelection
end mouseUp

does not... an i can't find a way to re-set the selection ....





-- 
Swasti Astu, Be Well!
Brahmanathaswami

Kauai's Hindu Monastery
www.HimalayanAcademy.com





More information about the use-livecode mailing list