Working with grouped text
Chris Sheffield
revlist at cableone.net
Tue Sep 23 18:13:01 EDT 2003
Dan,
Check out the linkClicked message and the linkText property. I think those
may help. You use the linkText property to "attach" a certain string (in
this case it could be the number you want) to a link. Then the parameter of
the linkClicked message will contain whatever that string is.
If you're using external text files and want to set the linkText in the
file, setup your links like you would in an html file and set the href
attribute to the string you want.
Hope that helps.
Chris Sheffield
Software Development
Read Naturally
csheffield at readnaturally.com
-----Original Message-----
From: use-revolution-admin at lists.runrev.com
[mailto:use-revolution-admin at lists.runrev.com] On Behalf Of Dan Friedman
Sent: Tuesday, September 23, 2003 3:01 PM
To: RunRev Mail List
Subject: Working with grouped text
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
_______________________________________________
use-revolution mailing list
use-revolution at lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution
More information about the use-livecode
mailing list