Hi Dennis,

Just a comment about your script:
You use 3 non exclusive conditional structures and then the engine will have to test all of them.
You might prefer something like:

if word 1 of it is "button" then put it & cr after btnList
else if word 1 of it is "field" then put it & cr after fldList

"if it contains "label field" then next repeat" is unnecessary and redundant :-)

Just my two cents.
Best regards from Paris,

Eric Chatonet.
Le 20 mai 05 � 23:12, Dennis Brown a �crit :

Eric,

This is exactly what I want to do, but it did not work.

On May 20, 2005, at 2:16 AM, Eric Chatonet wrote:


Hi Bob,

Buttons, fields, images, graphics, scrollbars, players and groups are controls:
put the number of controls
repeat for each control tControl in this card


I want to get the name (or number) of each control in a group.

get the number of controls in grp x  --works

repeat for each control c in anything --does not work for me


I guess I can always do it the other way:

  repeat with c=1 to the number of controls in grp grpName
    get the name of control c of grp grpName
    if it contains "label field" then next repeat
    if word 1 of it is "button" then put it&cr after btnList
    if word 1 of it is "field" then put it&cr after fldList
  end repeat

----------------------------------------------------------------
So Smart Software

For institutions, companies and associations
Built-to-order applications: management, multimedia, internet, etc.
Windows, Mac OS and Linux... With the French touch

Plugins, tutorials and more on our website
----------------------------------------------------------------
Web site        http://www.sosmartsoftware.com/
Email        [EMAIL PROTECTED]/
Phone        33 (0)1 43 31 77 62
Mobile        33 (0)6 20 74 50 86
----------------------------------------------------------------

_______________________________________________
use-revolution mailing list
[email protected]
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to