jumping among Mainstack and substacks isn't easy

Devin Asay devin_asay at byu.edu
Tue Jun 19 14:32:48 EDT 2012


Mark,

You don't need to include the quotes in your card name. The way you're doing it the name is literally:

 "Roberto Clemente"

So in effect you are asking LC to go to a card with the name that *includes* the quotes.

Just leave out the quote constants:

    put tFirstName & space & tSecondName into tUserName

Regards,

Devin

On Jun 19, 2012, at 12:04 PM, Mark Rauterkus wrote:

> Hi,
> 
> Still here with newbie frustration and needing to move along.
> 
> So, ....
> 
> This works for me in a button.
> 
> on mouseUp tUserName
>   put "Roberto Clemente" into tUserName
>   put "Present on" && the short english date & return after field
> "Attendance" of card tUserName of stack "Kids"
> end mouseUp
> 
> But this does NOT work, I guess, because I am wrongly building the
> tUserName so that tUserName is not valid in the script..
> 
> on mouseUp tUserName, tCharCount, tFirstName, tSecondName
>   get word 1 of field "Filtered_Results"
>   put it into tFirstName
>   get word 2 of field "Filtered_Results"
>   put it into tSecondName
>   put quote & tFirstName & space & tSecondName & quote into tUserName
> 
>   -- put tUserName into msg box -- Works fine, shows "Roberto Clemente"
> 
>   put "Present on" && the short english date & return after field
> "Attendance" of card tUserName of stack "Kids"
> 
> end mouseUp
> 
> 
> - - - other notes: - -
> 
>     	executing at 2:02:27 PM
> Type	Chunk: can't find card
> Object	Here & Present
> Line	put "Present on" && the short english date & return after field
> "Attendance" of card tUserName of stack "Kids"
> Hint	mouseUp
> 
> - - -
> I've tried building that card name temp var all sorts of way, and no
> luck with me.
> 
> 
> 
> Help greatly desired.
> 
> 
> 
> Mark Rauterkus
> mark at rauterkus.com
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

Devin Asay
Humanities Technology and Research Support Center
Brigham Young University







More information about the Use-livecode mailing list