Working with grouped text
Dan Friedman
dan at clearvisiontech.com
Tue Sep 23 16:05:01 EDT 2003
Ok... I could use a little help...
I have a field with grouped text such as:
This is [a test], [a quiz] or [a puzzle].
The text in "[]"s are grouped. When the user clicks one of the grouped
phrases, I underline the group. This is no problem:
if "link" is in the textStyle of the clickChunk then
if "underline" is in the textStyle of the clickChunk then
set the textStyle of the clickChunk to link
else
set the textStyle of the clickChunk to underline,link
end if
end if
My problem is when done, I want to examine the field and make a list of what
they underlined. However, I want the list to be numbers. For example, if
they click (that is underline) "a test" and "a puzzle", then I want "1,3"
(they underlined the first and third set of grouped text). If they only
click "a quiz", then I want "2" (they only selected the second set of
grouped text).
Anyone have any ideas?
Thanks in advance!
-Dan
More information about the use-livecode
mailing list