Re: jumping among Mainstack and substacks isn't easy

2012-06-19 Thread Peter M. Brigham
The mouseup message accepts one parameter, which is the number of the button pressed, normally 1 (left-click) or 3 (right-click). You can't pass other info along with the message, you have to build up your data inside the handler, as you in fact do with the stuff below that works. On Jun 19, 20

Re: jumping among Mainstack and substacks isn't easy

2012-06-19 Thread Peter Haworth
Don't put the quotes around the name in tUsername. Pete lcSQL Software On Tue, Jun 19, 2012 at 11:04 AM, 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

Re: jumping among Mainstack and substacks isn't easy

2012-06-19 Thread Devin Asay
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 & tSecondNa

Re: jumping among Mainstack and substacks isn't easy

2012-06-19 Thread Mark Rauterkus
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

Re: jumping among Mainstack and substacks isn't easy

2012-06-19 Thread Bob Sneidar
The debugger is your friend here. Insert a breakpoint and then step through your code to see what your variables *really* contain. If your variable is "Roberte Clemente of stack Kids", then in the words of an old and wise farmer, "You can't get there from here". You are saying that there is a ca

Re: jumping among Mainstack and substacks isn't easy

2012-06-18 Thread J. Landman Gay
On 6/18/12 9:05 PM, Mark Rauterkus wrote: Hi Again, I can't build a script that crafts a temp variable that can be used in a "go to card name" script. #Fail for me. So, I want to go to a different stack. -- check. write to a field -- check But I can't get to the proper card. I put the card n

Re: jumping among Mainstack and substacks isn't easy

2012-06-18 Thread Mark Rauterkus
Hi Again, I can't build a script that crafts a temp variable that can be used in a "go to card name" script. #Fail for me. So, I want to go to a different stack. -- check. write to a field -- check But I can't get to the proper card. I put the card name into that vTempC temp handle, complete w

Re: jumping among Mainstack and substacks isn't easy

2012-06-18 Thread Robert Brenstein
On 18.06.2012 at 14:34 Uhr -0700 Bob Sneidar apparently wrote: hmmm... If by context you mean that if I go to a card in another stack and get the name of this card, it will return the name of the card I came from and not the card I went to, I think you are mistaken, but I may have misunderstoo

Re: jumping among Mainstack and substacks isn't easy

2012-06-18 Thread Bob Sneidar
On Jun 18, 2012, at 2:16 PM, Robert Brenstein wrote: > On 18.06.2012 at 12:03 Uhr -0700 Bob Sneidar apparently wrote: >> I'm not entirely sure this is the issue, but let me describe how Livecode >> interprets your code. When you say "field boy", Livecode translates that to >> "field "boy" of th

Re: jumping among Mainstack and substacks isn't easy

2012-06-18 Thread Robert Brenstein
On 18.06.2012 at 12:03 Uhr -0700 Bob Sneidar apparently wrote: I'm not entirely sure this is the issue, but let me describe how Livecode interprets your code. When you say "field boy", Livecode translates that to "field "boy" of the current card of the topstack" (others will correct me if I am

Re: jumping among Mainstack and substacks isn't easy

2012-06-18 Thread Robert Brenstein
On 18.06.2012 at 16:36 Uhr -0400 Mark Rauterkus apparently wrote: Hi, Yep. LC just went strict with me. Errors such as: stack "Kids": compilation error at line 4 (Expression: unquoted literal), char 46 For the past week or two I've been FINE without these issues. Seemed as if LC didn't care. N

Re: jumping among Mainstack and substacks isn't easy

2012-06-18 Thread Bob Sneidar
I do not see how the second form has any meaning. vTempC will be the number of the mouse button you clicked. Bob On Jun 18, 2012, at 1:36 PM, Mark Rauterkus wrote: > This works: > > on mouseUp > go to card "Roberto Clemente" of stack "Kids" > end mouseUp > > But, this does not: > > on mo

Re: jumping among Mainstack and substacks isn't easy

2012-06-18 Thread Mark Rauterkus
Hi, Yep. LC just went strict with me. Errors such as: stack "Kids": compilation error at line 4 (Expression: unquoted literal), char 46 For the past week or two I've been FINE without these issues. Seemed as if LC didn't care. Now I've gone back throughout the code looking at the colors of the w

Re: jumping among Mainstack and substacks isn't easy

2012-06-18 Thread Bob Sneidar
I'm not entirely sure this is the issue, but let me describe how Livecode interprets your code. When you say "field boy", Livecode translates that to "field "boy" of the current card of the topstack" (others will correct me if I am wrong). LC allows you to do this for the sake of brevity in codi

jumping among Mainstack and substacks isn't easy

2012-06-18 Thread Mark Rauterkus
Hi, My database for camper kids is progressing, but some newbie head scratching is in full force. Cards in a mainstack keep contact info and attendance details, one card per person. This seems to be working fine, except when I jump to different substacks. Then an error occurs. Case in point: I am