Path: utzoo!attcan!uunet!know!zaphod.mps.ohio-state.edu!julius.cs.uiuc.edu!psuvax1!psuvm!q8n From: Q8N@psuvm.psu.edu (Scott D. Camp) Newsgroups: comp.sys.mac.hypercard Subject: Using group Message-ID: <90302.144024Q8N@psuvm.psu.edu> Date: 29 Oct 90 19:40:24 GMT Organization: Penn State University Lines: 36 I have what is probably a very simple problem that has me stumped. I am trying to create an index of a bg fld into another bg fld. (If this sounds like something you have seen in TidBITS, it should. I took the idea from TidBITS.) When I copy the contents of the field I am indexing, I would like the contents to have a textStyle of group so I can later use clickText to go to the appropriate card. However, I have not been able to think of a way to do this. I have tried setting the textStyle of the field to be indexed to group, but the put command does not retain the style of the field from which information is being copied. I have tried setting the textStyle of the index field itself to group, hoping that returns would separate different chunks, but this does not appear to work as the entire content of the field is grouped. Anyone have any ideas? Thanks in advance for considering the request of an admitted HC novice. BTW, here is the basic repeat loop I am using. Note that the bg fld index is obviously locked and has the property ShareText set to true. repeat with x = 1 to the number of cards go to card x if x = 1 then put bg fld "index name" & return into bg fld "index" else put bg fld "index name" & return after bg fld "index" end repeat I have also considered putting the contents of "index name" into a local variable and then setting textStyle to group, but from the discussion in The Book, I assume that textStyle does not work with local variables. Is my understanding correct? Again, thanks. Scott D. Camp Q8N@PSUVM.PSU.EDU The Pennsylvania State University 305 Oswald Tower University Park, PA 16802 814-863-0121