What makes a line a line in a chunk expression?

Len Morgan len-morgan at crcom.net
Sun Sep 6 18:34:22 EDT 2009


If I type the lines:

put "Movement History" into myChoice
put the text of button "taskBar" into tLines
put (myChoice is among the lines of tLines)

into the message box, the result I get is "false"

len morgan


Devin Asay wrote:
>
> On Sep 6, 2009, at 10:14 PM, Len Morgan wrote:
>
>> I'm trying to go to a card based on the choice made in an option menu
>> and it's not working right.  Here's the gist of what I'm doing:
>>
>> on menuPick pChoice
>>    put the text of button "taskBar" into tChoices
>>    if pChoice is among the lines of tChoices then
>>        go to card pChoice
>>    end if
>> end menuPick
>>
>> For some reason, this doesn't work.  Is pChoice not a line?  Since some
>> of the cards have multi-word names, I can't use "word".  Am I missing
>> something?
>
> Len,
>
> I can't see any reason why this shouldn't work. pChoice doesn't have 
> to have a line break in it to be considered a line; the text just has 
> to match a full line of the contents of the button.
>
> What happens when you try the individual commands in the message box?
>
> Devin
>
>
> Devin Asay
> Humanities Technology and Research Support Center
> Brigham Young University
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your 
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
>



More information about the Use-livecode mailing list