Variable question

Thomas McGrath III 3mcgrath at adelphia.net
Thu Apr 28 14:32:46 EDT 2005


Mark,

Actually it worked as expected but I wanted to check here first on the 
'right' way to do it since it did seem like it should not work. It may 
just be that the first time around in the repeat it was lSeq and item 1 
was not that so it worked then the next time it was an actual item.

So just to be sure, I should declare the lSeq local as a Local then it 
will be "" or empty but not lSeq ? Seems right.

Local lSeg


on handler....
	if item 1 is not among the lines of lSeq then
	....
	end if
end handler.....

Thanks
Tom

On Apr 28, 2005, at 11:53 AM, Mark Wieder wrote:

> Frank-
>
> Thursday, April 28, 2005, 7:00:37 AM, you wrote:
>
>>>> Is it OK to ask    " if item 1 is not among the lines of lSeq "
>>>> even though this is the first instance of lSeq?
>>>
>>> It should be, yes. It will just be FALSE, since lSeq is empty.
>
> FDEJ> No, if this is the first instance of lSeq, then lSeq will 
> contain the
> FDEJ> value "lSeq".
>
> ...not if you declare your variables ...then things work as expected.
>
> -- 
> -Mark Wieder
>  mwieder at ahsoftware.net
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
>

Thomas J. McGrath III
SCS
1000 Killarney Dr.
Pittsburgh, PA 15234
412-885-8541



More information about the use-livecode mailing list