Indirect Chunk References
JimCarwardine at OwnYourFuture-net.com
Fri Jan 7 20:53:29 EST 2005
Thanks Jacque. I forgot about the value of... There is a situation where I
do pass an empty parameter. My handler works fine now... Jim
on 1/7/05 2:49 PM, J. Landman Gay wrote:
> On 1/7/05 8:32 AM, Jim Carwardine 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
>> theEvent contains the selectedLine from a field
>> on eventManager theEvent
>> lock screen
>> put " of stack " & quote & "OYF TNT Time View" & quote after theEvent
>> go to stack "Event Manager"
>> 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
>> Can someone straighten me out? Thanks...
> You'll need "the value of the selectedline" or else the selectedtext.
> Also, in the above script, "theEvent" will never be empty, since the
> script concatenates extra text to the parameter before checking its value.
OYF is... Highly resourceful people working together.
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