Re: The selectedObjects - is it a container or not?

2017-04-21 Thread Curry Kenworthy via use-livecode
Richard: > I wholeheartedly agree. ... > I'm putting together a little plan to move that vision > forward for a new generation of programmers. Good! That's what we need. Although HC itself is history, the reasons for its success can hold a lot of promise for the future. Best wishes, Curry K.

Re: The selectedObjects - is it a container or not?

2017-04-21 Thread Richard Gaskin via use-livecode
Curry Kenworthy wrote: > Richard: >> What LiveCode brings to the modern world is a high-level >> scripting language distinguished not by any conformance to >> the rules of English, but by being among the very few that >> include support for GUI controls as inherent language elements. > > Just a

Re: The selectedObjects - is it a container or not?

2017-04-21 Thread Curry Kenworthy via use-livecode
Richard: What LiveCode brings to the modern world is a high-level scripting language distinguished not by any conformance to the rules of English, but by being among the very few that include support for GUI controls as inherent language elements. Just a brief reply here to note that there's

Re: The selectedObjects - is it a container or not?

2017-04-19 Thread Richard Gaskin via use-livecode
Bob Sneidar wrote: > On Apr 19, 2017, at 09:58 , Richard Gaskin wrote: >> >> E.g. this: >> >> put arrayEncode( the customProperties["Prefs"] of stack "Prefs" ) \ >>into url ("binfile:"& specialFolderPath("Preferences") & \ >>"/MyPrefs.dat" ) >> >> ...is readable enough, but far from

Re: The selectedObjects - is it a container or not?

2017-04-19 Thread Bob Sneidar via use-livecode
I would not do it that way. To make it more readable I would use: put the customProperties["Prefs"] of stack "Prefs" into tPrefs put "binfile:"& specialFolderPath("Preferences") & "/MyPrefs.dat" into tFilePath put arrayEncode(tPrefs) into url tFilePath That is english readable as much as can be

Re: The selectedObjects - is it a container or not?

2017-04-19 Thread Richard Gaskin via use-livecode
Graham Samuel wrote: > I know really that the ‘the’ indicates a function... The use of "the" for both properties and some (but not all) functions is among the few mistakes the original HyerTalk team made. If "the" were used exclusively for properties, there would be no confusing ambiguity.

Re: The selectedObjects - is it a container or not?

2017-04-19 Thread Graham Samuel via use-livecode
Yes, thanks very much Mark. I do get it completely now, if a little belatedly! Cheers Graham > On 19 Apr 2017, at 09:15, Mark Waddingham via use-livecode > wrote: > > Hi Graham, > > On 2017-04-17 21:07, Graham Samuel via use-livecode wrote: >> I have a stack

Re: The selectedObjects - is it a container or not?

2017-04-19 Thread Mark Waddingham via use-livecode
Hi Graham, On 2017-04-17 21:07, Graham Samuel via use-livecode wrote: I have a stack where the user is allowed to select vector objects. For this example, let’s assume some objects are already selected. I am using LC 8.1.4 rc1 on a Mac running Sierra, and I have a bit of code that says in

Re: The selectedObjects - is it a container or not?

2017-04-18 Thread Bob Sneidar via use-livecode
She used to be wrong, but she used her Time Travel stack to go back and correct everything. Bob S On Apr 18, 2017, at 24:46 , Graham Samuel via use-livecode > wrote: Jacque, you’re never wrong!

Re: The selectedObjects - is it a container or not?

2017-04-18 Thread Graham Samuel via use-livecode
Jacque, you’re never wrong! I know really that the ‘the’ indicates a function, but at the same time it’s kind of a trap within the idea that LC scripting is “English-like". For clarity, managing the selected objects is probably better done by something like: put selectedObjects() into temp

Re: The selectedObjects - is it a container or not?

2017-04-17 Thread J. Landman Gay via use-livecode
I have a bit of code that says in part: if the selectedObjects is not empty then repeat with i = 1 to the number of lines of the selectedObjects … This results in an error “source is not a container”. OTOH, if I change the second line to repeat with i = 1 to the number

Re: The selectedObjects - is it a container or not?

2017-04-17 Thread dunbarx via use-livecode
Hi. If I have three buttons on a card, named "b1", "b2" and "b3", and in the script of "b3" I have: on mouseUp select btn "b1" and btn "b2" answer the selectedObjects end mouseUp I get both selected buttons without issue.. Note this is in v. 6.7.9. But the "selectedObjects" does not seem