Re: ObjectList as a variable won't go?

2010-06-22 Thread Michael Kristensen
Thanks Klaus, that did it! Thanks to all other repliers! Mic on mouseUp repeat with i = 1 to the number of groups of group "workarea" set the SELECTED of grp i of grp "workarea" to TRUE end repeat end mouseUp Et voila, all objects/groups selected. __

Re: ObjectList as a variable won't go?

2010-06-21 Thread Jim Ault
Thanks, Klaus, good work :-) Now I can finally remember the programming technique I used 4 years ago, that did not include a DO command ! As I get older, I get slower and fuzzier. i would add the following line before the loop depending on the programmer's intent. On Jun 21, 2010, at 11:5

Re: ObjectList as a variable won't go?

2010-06-21 Thread BNig
Hi Klaus, I tried some variations but did not think of "set the selected" et voilĂ : Chapeau! regards Bernd Klaus on-rev wrote: > > Hi all, > > hm, looks like I missed the explanation why "DO" has to be involved?! > > Anyway, I ususally do this: > > on mouseUp > repeat with i = 1 to th

Re: ObjectList as a variable won't go?

2010-06-21 Thread Klaus on-rev
Hi all, hm, looks like I missed the explanation why "DO" has to be involved?! Anyway, I ususally do this: on mouseUp repeat with i = 1 to the number of groups of group "workarea" set the SELECTED of grp i of grp "workarea" to TRUE end repeat end mouseUp Et voila, all objects/groups sele

Re: ObjectList as a variable won't go?

2010-06-21 Thread BNig
Michael, as Mark and Jim pointed out: try this on mouseUp put "" into tCollect repeat with i = 1 to the number of groups of group "workarea" put the long id of group i of group "workarea" & " and " after tCollect end repeat delete last word of tCollect

Re: ObjectList as a variable won't go?

2010-06-21 Thread Michael Kristensen
Hi Michael, The following example works: select control 1 and control 2 As always: what is the chunk error exactly? When you *mention* getting an error, you should also *post* this error. -- Best regards, Mark Schonewille Thanks for the replies: Here is the error: TypeChunk: error i

Re: ObjectList as a variable won't go?

2010-06-21 Thread Jim Ault
On Jun 21, 2010, at 6:18 AM, Mark Schonewille wrote: Hi Jim, Have you actually tried it, keeping the list of references in a variable while not using the do command? You are correct, Mark, the DO command is necessary here. I got focused on the early errors in the script that mean the strin

Re: ObjectList as a variable won't go?

2010-06-21 Thread Mark Schonewille
Hi Jim, Have you actually tried it, keeping the list of references in a variable while not using the do command? -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer Subscribe to

Re: ObjectList as a variable won't go?

2010-06-21 Thread Jim Ault
You need to look at the list you are creating, compare it to the dictionary example (the Select command), and then fix you code to generate a valid string. You should not have to use the 'DO' command.. There is no reason to expect it to work as you have written it. On Jun 21, 2010, at 12:43 AM,

Re: ObjectList as a variable won't go?

2010-06-21 Thread Mark Schonewille
Michael, Thinking about it again, I believe this simply doesn't work with variables (=references as strings). It only works with actual references to objects. You can avoid this problem by using the do command (which seems a bit ironic, considering a recent thread on the list). -- Best

Re: ObjectList as a variable won't go?

2010-06-21 Thread Mark Schonewille
Hi Michael, The following example works: select control 1 and control 2 As always: what is the chunk error exactly? When you *mention* getting an error, you should also *post* this error. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http:/

ObjectList as a variable won't go?

2010-06-21 Thread Michael Kristensen
Hi there ObjectList is used in cunjunction wuth GROUP and SELECT. But objectList wont go as a variable. Hee's what I have: on mouseUp put number of grps of grp Workarea into X repeat with i = 1 to X put "grp" && ("GP" & i) && "and " after oList end repeat delete last word