Search found 9382 matches

by dunbarx
Sun Apr 10, 2016 11:40 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Make Hyperlinks active
Replies: 31
Views: 14916

Re: Make Hyperlinks active

Ah.

I am always the last to know that the OP is either working with mobil, or with a dataGrid.

Craig
by dunbarx
Sun Apr 10, 2016 11:38 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: name options
Replies: 17
Views: 8472

Re: name options

Hi. Look up the "sort" and "sort container" commands in the dictionary. Make a list, and then play with the "sortKey" Play with that a lot. As for picking one line out of many, We must know more about what you need and intend. And you may well need to clarify that for yourself as well. The good news...
by dunbarx
Sun Apr 10, 2016 9:35 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Snapping objects/ buttons to locations
Replies: 2
Views: 1653

Re: Snapping objects/ buttons to locations

Hi. One at a time: if the loc of me is <20 graphic "Grid V1" then The loc must be defined by two integers separated by a comma. Period. So (you have to think to yourself) how does LC interpret the phrase " <20 graphic "Grid V1" as a pair of integers separated by a comma? I am not being flip. I belie...
by dunbarx
Sun Apr 10, 2016 4:59 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Make Hyperlinks active
Replies: 31
Views: 14916

Re: Make Hyperlinks active

Richard.

Good point. And I suppose that validating the style of the clickText would require an extra step.

I guess I was more interested in suggesting a basic technique than thinking through the issues.

Craig
by dunbarx
Sun Apr 10, 2016 3:36 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Make Hyperlinks active
Replies: 31
Views: 14916

Re: Make Hyperlinks active

Hi.

I never looked at a lesson, but did it really leave you hanging without a way forward?

What Dixie said, and also you might know that (assuming the field is locked):

Code: Select all

on mouseUp
launch URL the clickText
end mouseUp
is another way.

Craig Newman
by dunbarx
Sat Apr 09, 2016 11:17 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Count # of Unique Two-Word Phrases (Strings/Items)
Replies: 23
Views: 11342

Re: Count # of Unique Two-Word Phrases (Strings/Items)

If all the OP wanted to do was count two-word phrases, and not find them in their offsets as well, Then why not just(in v.7 and above): set the itemDel to "has fleas" answer the number of items of fld "yourField" - 1 Rereading the very first post, this is all that was asked for. The new ItemDel can ...
by dunbarx
Sat Apr 09, 2016 11:09 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Don't "do" it
Replies: 4
Views: 2811

Re: Don't "do" it

Mark,

I doubt I can prove it to anyone from here.

I will try it on other machines. I can do this on about 15, and report back.

Craig
by dunbarx
Sat Apr 09, 2016 6:23 pm
Forum: Talking LiveCode
Topic: Which version has the new itemDel?
Replies: 11
Views: 4210

Re: Which version has the new itemDel?

Calm down, everyone. My dictionary is v6, so I for one would not have seen that notice. And a quick perusal of the updates to the dictionary in the list of release notes on the LC site did not show the change, though I could have missed it. But I do believe that this is a powerful enhancement to an ...
by dunbarx
Sat Apr 09, 2016 3:46 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Don't "do" it
Replies: 4
Views: 2811

Re: Don't "do" it

Mark.

Wouldn't that be earth shattering news, that such a thing is machine dependent?

Craig
by dunbarx
Fri Apr 08, 2016 7:01 pm
Forum: Talking LiveCode
Topic: Which version has the new itemDel?
Replies: 11
Views: 4210

Re: Which version has the new itemDel?

Klaus.
...Awful!
Was that a joke that preceded Monty Python?

Craig
by dunbarx
Fri Apr 08, 2016 5:38 pm
Forum: Talking LiveCode
Topic: Which version has the new itemDel?
Replies: 11
Views: 4210

Which version has the new itemDel?

I thought it was v.7x.

And is any string supported?

Code: Select all

set the itemDel to "my dog has fleas"
Craig Newman
by dunbarx
Fri Apr 08, 2016 5:34 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Count # of Unique Two-Word Phrases (Strings/Items)
Replies: 23
Views: 11342

Re: Count # of Unique Two-Word Phrases (Strings/Items)

I am still in v. 6.7, so if you have read the thread in the "Feature Requests" pane, the newest itemDel is your friend. It can be the "custom chunk". I am not sure where the itemDelimiter is no longer restricted to single characters, but rather to any string (I think this is right), so if you set th...
by dunbarx
Fri Apr 08, 2016 2:16 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Count # of Unique Two-Word Phrases (Strings/Items)
Replies: 23
Views: 11342

Re: Count # of Unique Two-Word Phrases (Strings/Items)

Hi.

Check out a post I made in the "Feature Request" area, "Custom Chunk"

Craig
by dunbarx
Fri Apr 08, 2016 4:43 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Count # of Unique Two-Word Phrases (Strings/Items)
Replies: 23
Views: 11342

Re: Count # of Unique Two-Word Phrases (Strings/Items)

Hi. Someone more clever than I will undoubtedly come up with a solution along the lines you asked for. I am the one who touts "a little analysis is worth a million lines of code" But after a little while, I resorted to an ordinary brute-force method. Maybe it will be of some use to you. I randomly s...
by dunbarx
Thu Apr 07, 2016 8:45 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Don't "do" it
Replies: 4
Views: 2811

Don't "do" it

Thought I would start a new thread, since the old one is getting long in the tooth. Say you have a valid string in the clickChunk (char 103 to 105 of field 10). So: get "XYZ" put it into the clickChunk -- "LINE "A" put it into char (word 2 of the clickChunk) to (word 4 of the clickChunk) of fld 10 -...

Go to advanced search