Can't set hilitedLine inside openStack

Paul D. DeRocco pderocco at ix.netcom.com
Tue Jun 18 19:01:10 EDT 2013


I have a modal stack that contains a listbox used to select something, and I
keep track of the last selection made in a global variable. I want the stack
to pop up with the last selection already highlighted, or no line
highlighted if there is no matching line. So I compute the number of the
matching line in a variable, or "empty" if there is no match, and then do

    set the hilitedLine of field "foo" of stack "bar" to n

It does bupkis; no matter what, the first line remains selected. If I set a
breakpoint on this line, and open the stack manually (i.e., non-modally so
that it will actually trigger the break), I can see that n contains the
correct value. When I step across the above statement, nothing happens. If I
then type exactly the same statement into the Message Box, the proper line
is highlighted. What the heck is going on?

-- 

Ciao,               Paul D. DeRocco
Paul                mailto:pderocco at ix.netcom.com 
 





More information about the use-livecode mailing list