Search found 4989 matches

by dunbarx
Thu Dec 14, 2017 11:01 pm
Forum: Bug Triage
Topic: go to stack exits handler
Replies: 17
Views: 225

Re: go to stack exits handler

Richard, OK. Bug # 20770. But there is a deeper, or at least more sinister issue. The recipe is peculiar to a particular project of mine. A new stack/substack combo does not exhibit the behavior. I do not need a "try" gadget to be able to navigate to another stack and have the controlling handler ke...
by dunbarx
Thu Dec 14, 2017 8:31 pm
Forum: Bug Triage
Topic: go to stack exits handler
Replies: 17
Views: 225

Re: go to stack exits handler

Right? That would make more sense.
Correct.

I actually did not say "commenting out the go inside the try structure.." :wink:

Craig
by dunbarx
Thu Dec 14, 2017 8:28 pm
Forum: Bug Triage
Topic: go to stack exits handler
Replies: 17
Views: 225

Re: go to stack exits handler

@Jacque, Start center is not open. Never use it. But is it in the message path? Otherwise, how do it know? @ Richard. I did report it, and told them to read the thread, which has now moved. I will update at QCC, because I think the history of this is worth it, and hard to enunciate in the report for...
by dunbarx
Thu Dec 14, 2017 8:11 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: function returns string with quotes
Replies: 5
Views: 69

Re: function returns string with quotes

Hi.

What Klaus said.

Looking at it from the other side, know that double quotes are "native" elements in LC. But there is a constant called "quote". So the way to create something like (32") is:

Code: Select all

answer "32" & quote
Here you can see both "types" of quote.

Craig Newman
by dunbarx
Thu Dec 14, 2017 7:19 pm
Forum: Bug Triage
Topic: go to stack exits handler
Replies: 17
Views: 225

Re: go to stack exits handler

The errorVariable in the catch portion of a try construction is empty if there are no errors. If I add one in my handler it reads: 89,88,1 77,88,27 449,88,4 535,88,1 241,88,1,logoInitialise 353,0,0,stack "/Applications/LiveCode Community 8.1.8.app/Contents/Tools/Toolset/palettes/start center/revStar...
by dunbarx
Thu Dec 14, 2017 7:11 pm
Forum: Bug Triage
Topic: go to stack exits handler
Replies: 17
Views: 225

Re: go to stack exits handler

Jacque. I misSpoke. I knew subStacks were in memory. I should have said, "never been opened before". Now then. If I have this: doStuff --try -- go stack "mySubStack" --end try --go stack "mySubStack" doOtherStuff If I uncomment the "go" line, I have my old issue. Two passes required to get the handl...
by dunbarx
Thu Dec 14, 2017 4:47 pm
Forum: Bug Triage
Topic: go to stack exits handler
Replies: 17
Views: 225

Re: go to stack exits handler

Jacque. There is no handler after the "go" command. A single handler in the mainstack navigates to the substack and then continues, in-line, to do things on that subStack. The stack and card scripts of the substack are empty. This works fine if the subStack has already been opened, but fails if not....
by dunbarx
Thu Dec 14, 2017 3:51 pm
Forum: Bug Triage
Topic: go to stack exits handler
Replies: 17
Views: 225

Re: go to stack exits handler

Hi.

I made a new stack and a substack. In a button on the mainstack:
on mouseUp
go stack "untitled 2"
answer random(99)
end mouseUp

Works fine. There is something about my own stack/substack getup that causes this to fail.

Craig.
by dunbarx
Wed Dec 13, 2017 11:38 pm
Forum: Bug Triage
Topic: go to stack exits handler
Replies: 17
Views: 225

go to stack exits handler

I have a handler that navigates to a substack: dostuff go stack "someSubStack" doOtherStuff The handler exits after the "go" line. There is nothing in either the card or stack script of stack "someSubStack". I have several other substacks of the main stack, and they all exhibit this behavior. If fir...
by dunbarx
Wed Dec 13, 2017 10:01 pm
Forum: Talking LiveCode
Topic: Filter Script & Patterns & Regex
Replies: 19
Views: 258

Re: Filter Script & Patterns & Regex

I am very leery of the "hidden" property. Because hidden lines collapse the other lines, it can be very disconcerting that a field that has five lines only shows three, say. Never mind returns below the field, which are annoying enough. The hidden property is only useful when actually viewing lines ...
by dunbarx
Mon Dec 11, 2017 11:24 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: control hscroll of one field by another field
Replies: 3
Views: 64

Re: control hscroll of one field by another field

Hi.
...i was using set hscroll of fld "title" ...
You probably could, but the message is the thing, not the property, if you know what I mean.

Craig
by dunbarx
Mon Dec 11, 2017 9:49 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: control hscroll of one field by another field
Replies: 3
Views: 64

Re: control hscroll of one field by another field

This is done by setting the scroll of your "slave" field to the scroll of your "master" field. Put this in the script of the "master": on scrollbarDrag set the scroll of fld 2 to the scroll of me end scrollbarDrag Now this assumes, for example, that the textSize of each field is the same. You can pr...
by dunbarx
Mon Dec 11, 2017 9:42 pm
Forum: Talking LiveCode
Topic: Filter Script & Patterns & Regex
Replies: 19
Views: 258

Re: Filter Script & Patterns & Regex

I was just trying to be cute with the "don't understand" thing. That is not to say I understand. But note that the filter command can be used without all that fancy regex/wildCard stuff. If you have a fid 1 with "a,b,c,d,e,f,g" and you: on mouseUp filter items of fld 1 without "b" into temp answer t...
by dunbarx
Mon Dec 11, 2017 5:33 pm
Forum: Talking LiveCode
Topic: Filter Script & Patterns & Regex
Replies: 19
Views: 258

Re: Filter Script & Patterns & Regex

Regex is like dataGrids. I use them but do not understand them.

Craig Newman
by dunbarx
Mon Dec 11, 2017 5:29 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Resizing at 80% Editor space / Screen
Replies: 2
Views: 62

Re: Resizing at 80% Editor space / Screen

Hi.

The script editor is just a stack You can manipulate all you want. Try it:

Code: Select all

set the rect of stack "revnewscripteditor 1" to "100,100,600,600"
Craig Newman

Go to advanced search