Indirect Chunk References
J. Landman Gay
jacque at hyperactivesw.com
Fri Jan 7 13:49:13 EST 2005
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.
Jacqueline Landman Gay | jacque at hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
More information about the Use-livecode