Indirect Chunk References

Jim Carwardine JimCarwardine at OwnYourFuture-net.com
Fri Jan 7 20:33:44 EST 2005


Thanks, Ken and Robert.  I knew that.  There is a subtle difference between
a groove and a rut.  It's called take a break once in a while... Jim

on 1/7/05 11:12 AM, Ken Ray wrote:

> On 1/7/05 8:32 AM, "Jim Carwardine" <JimCarwardine at OwnYourFuture-net.com>
> wrote:
> 
>> Hi Folks... Maybe I'm looking at this app too long.  I do this kind of code
>> all the time and I can't figure out what I doing wrong.  I'm having trouble
>> with referencing a chunk.  I keep getting the actual chunk expression in my
>> stack label, not the selected line it's supposed to reference.  Here's my
>> handler...
> 
> I think it's because you're using the "selectedLine" instead of the
> "selectedText"... 'selectedLine' returns a chunk expression; 'selectedText'
> returns the highlighted text. So since you don't need any object descriptor
> code, this would leave:
> 
> on eventManager theEvent
>   if theEvent is empty then set the label of this stack to "New Event"
>   else set the label of this stack to theEvent
> end eventManager
> 
> HTH,
> 
> Ken Ray
> Sons of Thunder Software
> Web site: http://www.sonsothunder.com/
> Email: kray at sonsothunder.com
> 
> 
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution

-- 

OYF is... Highly resourceful people working together.
<http://www.OwnYourFuture-net.com>

Own Your Future Consulting Services Limited,
1959 Upper Water Street, Suite 407, Halifax, Nova Scotia. B3J 3N2
Info Line: 902-823-2477, Phone: 902-823-2339. Fax: 902-823-2139





More information about the use-livecode mailing list